简体   繁体   中英

SCons in Python

I would like to load SCons in an interactive Python session and enter directives that way as opposed to through an SConstruct or SConscript file. Is this possible? I'm trying to embed SCons functionality into another Python application.

It would appear so,

Just add Scons to your PYTHONPATH and import whatever you need. Copy the appropriate bits out of scons' main that suit you - Scons/Script/Main.py - or just run its main from the appropriate folder.

http://osdir.com/ml/programming.tools.scons.user/2005-03/msg00058.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM