*Not documented*
def remote_bootstrap_gateway(self, io, extra=''):
origin: execnet.PopenGateway
where:
function source:
def remote_bootstrap_gateway(self, io, extra=''):
# XXX the following hack helps us to import the same version
# of the py lib and other dependcies, but only works for
# PopenGateways because we can assume to have access to
# the same filesystem
# --> we definitely need proper remote imports working
# across any kind of gateway!
x = py.path.local(py.__file__).dirpath().dirpath()
ppath = os.environ.get('PYTHONPATH', '')
plist = [str(x)] + ppath.split(':')
s = "\n".join([extra,
"import sys ; sys.path[:0] = %r" % (plist,),
"import os ; os.environ['PYTHONPATH'] = %r" % ppath,
""
])
super(PopenGateway, self).remote_bootstrap_gateway(io, s)
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.0
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.1
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.2
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.3
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.4
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.5
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.6
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.7
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.8
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.9
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.10
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py
traceback execnet.PopenGateway.remote_bootstrap_gateway.11
called in /home/johnny/projects/merlinux/py/dist/py/execnet/register.py