[py-svn] r8218 - py/dist/py/execnet
hpk at codespeak.net
hpk at codespeak.net
Tue Jan 11 17:31:19 CET 2005
Author: hpk
Date: Tue Jan 11 17:31:19 2005
New Revision: 8218
Modified:
py/dist/py/execnet/register.py
Log:
be prepared for undefined PYTHONPATHs
Modified: py/dist/py/execnet/register.py
==============================================================================
--- py/dist/py/execnet/register.py (original)
+++ py/dist/py/execnet/register.py Tue Jan 11 17:31:19 2005
@@ -70,7 +70,7 @@
# of the py lib, but only works for PopenGateways
# --> we need proper remote imports working
# across any kind of gateway!
- plist = os.environ['PYTHONPATH'].split(':')
+ plist = os.environ.get('PYTHONPATH', '').split(':')
s = "import sys ; sys.path[:0] = %r" % (plist,)
s = "\n".join([extra, s])
super(PopenGateway, self).remote_bootstrap_gateway(io, s)
More information about the pytest-commit
mailing list