Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).

   1 # Instantiate an extension of Environment with custom functions 
   2 # such as "jcompile" and "jtest".
   3 e = JEnvironment(...)
   4 
   5 # The following hack allows to avoid the Import("*") call and the exports 
   6 # parameter of the SConscript() call in SConscript files.
   7 SCons.Script._SConscript.GlobalDict.update(
   8     {
   9         "e": e,
  10         "jcompile": e.jcompile,
  11         "jtest": e.jtest,
  12     }
  13 )

ExportImportShortcutHack (last edited 2008-03-12 02:47:01 by localhost)