Please note:The SCons wiki is in read-only mode due to ongoing spam/DoS issues. Also, new account creation is currently disabled. We are looking into alternative wiki hosts.

   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)