-
-
Notifications
You must be signed in to change notification settings - Fork 338
ExportImportShortcutHack
garyo edited this page Dec 13, 2014
·
2 revisions
#!python
# Instantiate an extension of Environment with custom functions
# such as "jcompile" and "jtest".
e = JEnvironment(...)
# The following hack allows to avoid the Import("*") call and the exports
# parameter of the SConscript() call in SConscript files.
SCons.Script._SConscript.GlobalDict.update(
{
"e": e,
"jcompile": e.jcompile,
"jtest": e.jtest,
}
)