mdeng1024 / winpdb

Automatically exported from code.google.com/p/winpdb
0 stars 1 forks source link

os.environ['PATH'] does not exist on all platforms #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
At line 3386 of rpdb2.py, you should check to see if PATH is in os.environ 
before retrieving it -- for whatever reason, PATH is not defined in the 
environment for RobotPy/vxWorks. So:

if 'PATH' in os.environ:
    paths = sources_paths + cwd + g_initial_cwd + sys.path + os.environ['PATH'].split(os.pathsep)
else:
    paths = sources_paths + cwd + g_initial_cwd + sys.path

Original issue reported on code.google.com by randompe...@gmail.com on 11 Jan 2011 at 5:36