parent
c32fa7b4f3
commit
353ce8d0ce
|
@ -53,7 +53,7 @@ class PathServer:
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import py
|
import py
|
||||||
gw = py.execnet.PopenGateway()
|
gw = py.execnet.PopenGateway()
|
||||||
channel = gw.channelfactory.new()
|
channel = gw._channelfactory.new()
|
||||||
srv = PathServer(channel)
|
srv = PathServer(channel)
|
||||||
c = gw.remote_exec("""
|
c = gw.remote_exec("""
|
||||||
import remotepath
|
import remotepath
|
||||||
|
|
|
@ -14,7 +14,7 @@ channel.send(srv.p2c(py.path.local("/tmp")))
|
||||||
#gw = py.execnet.SshGateway('codespeak.net')
|
#gw = py.execnet.SshGateway('codespeak.net')
|
||||||
gw = py.execnet.PopenGateway()
|
gw = py.execnet.PopenGateway()
|
||||||
c = gw.remote_exec(SRC)
|
c = gw.remote_exec(SRC)
|
||||||
subchannel = gw.channelfactory.new()
|
subchannel = gw._channelfactory.new()
|
||||||
c.send(subchannel)
|
c.send(subchannel)
|
||||||
|
|
||||||
p = RemotePath(subchannel, c.receive())
|
p = RemotePath(subchannel, c.receive())
|
||||||
|
|
Loading…
Reference in New Issue