[JPython] how do I get at the environment in JPython?

Ivan Van Laningham ivanlan at home.com
Thu May 25 13:49:02 EDT 2000


Hi All--

Chris Gokey wrote:
> 
> HI everyone,
> 
> I'm trying to access environment variables in jpython... I've tried several things:
> 
> 1)
> import os
> os.environ['MD_PATH']
> 

?

mdp=os.environ['MD_PATH']

should work if all you want to do is read it.

<gp_path>-ly y'rs,
Ivan;-)
----------------------------------------------
Ivan Van Laningham
Axent Technologies, Inc.
http://www.pauahtun.org 
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours




More information about the Python-list mailing list