Index: Lib/javaos.py =================================================================== --- Lib/javaos.py (revision 2799) +++ Lib/javaos.py (working copy) @@ -220,8 +220,10 @@ environ = LazyDict( populate=_getEnvironment ) putenv = environ.__setitem__ -getenv = environ.__getitem__ +def getenv(key, default=None): + return environ.get(key, default) + def system( *args, **kwargs ): # allow lazy import of popen2 and javashell import popen2