| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
| 14 |
| 15 |
| 16 |
| 17 |
| 18 |
| 19 |
| 20 |
| 21 | |
import py |
from remotepath import RemotePath |
|
|
|
|
SRC = open('channeltest.py', 'r').read() |
|
|
SRC += ''' |
import py |
srv = PathServer(channel.receive()) |
channel.send(srv.p2c(py.path.local("/tmp"))) |
''' |
|
|
|
|
|
|
gw = py.execnet.PopenGateway() |
c = gw.remote_exec(SRC) |
subchannel = gw.channelfactory.new() |
c.send(subchannel) |
|
|
p = RemotePath(subchannel, c.receive()) |
|
| |