[Scons-users] script import

William Deegan bill at baddogconsulting.com
Sun Jul 7 15:47:58 EDT 2013


Phil,

Add the path to sys.path, and then just import.

-Bill
On Jul 6, 2013, at 3:57 AM, Philipp Kraus <philipp.kraus at tu-clausthal.de> wrote:


> Hello,

>

> I have stores under <projectdir>/site_scons/ a Utilites.py script. In my main SCons script <projectdir>/SConstruct I can use this script with "import Utilities".

> I have some subdirectories eg <projectdir>/subdir/SConstruct and I would like to use the Utilities script also, I have tried to push the Utilites with

> the exports="env Utilities" on the env.SConscript or I do the import in the subscript direct with import, but that is not working. How can I push my Utilities

> script to all subbuildscripts?

>

> I hope that this question is not OT, because it can be also a Python question

>

> Thanks

>

> Phil

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users




More information about the Scons-users mailing list