[py-svn] r8052 - py/dist/py/execnet

hpk at codespeak.net hpk at codespeak.net
Mon Jan 3 18:11:33 CET 2005


Author: hpk
Date: Mon Jan  3 18:11:33 2005
New Revision: 8052

Modified:
   py/dist/py/execnet/register.py
Log:
only mirror PYTHONPATH because transmitting sys.path 
across python versions is, um, dubious. 



Modified: py/dist/py/execnet/register.py
==============================================================================
--- py/dist/py/execnet/register.py	(original)
+++ py/dist/py/execnet/register.py	Mon Jan  3 18:11:33 2005
@@ -70,7 +70,8 @@
         #     of the py lib, but only works for PopenGateways 
         #     --> we need proper remote imports working 
         #         across any kind of gateway!
-        s = "import sys ; sys.path[:] = %r" % (sys.path,) 
+        plist = os.environ['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