[Scons-users] using scons api without invoking main "scons" executable
Karl Ostmo
kostmo at gmail.com
Sat Jun 1 18:06:44 EDT 2013
Could the installed SCons Python modules be used to query a dependency
tree programmatically, without executing the main "scons" program?
I started with a script like this:
>>>>> BEGIN SCRIPT
import sys, os
sys.path.append( os.path.expanduser("~/Downloads/scons-2.1.0/engine") )
import SCons.Node.FS
import SCons.Script.SConscript
fs = SCons.Node.FS.get_default_fs()
toplevel_script_filename = "SConstruct"
SCons.Script.SConscript.SConscript(fs, toplevel_script_filename)
<<<<< END SCRIPT
The above snippet produces this error:
AttributeError: 'DefaultEnvironmentCall' object has no attribute 'SConscript'
My goal is to write a frontend to display which files in our
repository are in use as dependencies vs. cruft.
More information about the Scons-users
mailing list