[Scons-users] Acccessing environment variables
    Florian Lindner 
    mailinglists at xgm.de
       
    Wed Sep 10 10:49:32 EDT 2014
    
    
  
Hello,
I have created my environment with:
env = Environment(variables = vars, ENV = os.environ)
I expect that I can access all env variables that are available on shell 
too, but:
(set a pdb.set_trace() below setting env like above)
(Pdb) os.environ["PETSC_DIR"]
'/data2/scratch/lindner/petsc'
(Pdb) env["PETSC_DIR"]
*** KeyError: 'PETSC_DIR'
What is wrong there? Probably with my understanding... ;-)
Thx,
Florian
    
    
More information about the Scons-users
mailing list