[svn r37458] try to only rsync the py lib, not the dirpath() of it
--HG-- branch : trunk
This commit is contained in:
parent
9e7886c59b
commit
e64d602cd2
|
@ -34,14 +34,16 @@ class MySession(RemoteTerminalSession):
|
||||||
print "MASTER: initializing remote socket gateway"
|
print "MASTER: initializing remote socket gateway"
|
||||||
gw = py.execnet.SocketGateway(*self.socketserveradr)
|
gw = py.execnet.SocketGateway(*self.socketserveradr)
|
||||||
rsync = MyRSync(delete=True)
|
rsync = MyRSync(delete=True)
|
||||||
|
pkgname = 'py' # xxx flexibilize
|
||||||
channel = gw.remote_exec("""
|
channel = gw.remote_exec("""
|
||||||
import os
|
import os
|
||||||
path = os.path.join(os.environ['HOMEPATH'], 'pytestcache')
|
topdir = os.path.join(os.environ['HOMEPATH'], 'pytestcache')
|
||||||
channel.send(path)
|
pkgdir = os.path.join(topdir, %r)
|
||||||
""")
|
channel.send((topdir, pkgdir))
|
||||||
remotetopdir = channel.receive()
|
""" % (pkgname,))
|
||||||
rsync.add_target(gw, remotetopdir)
|
remotetopdir, remotepkgdir = channel.receive()
|
||||||
sendpath = py.path.local(py.__file__).dirpath().dirpath()
|
rsync.add_target(gw, remotepkgdir)
|
||||||
|
sendpath = py.path.local(py.__file__).dirpath()
|
||||||
rsync.send(sendpath)
|
rsync.send(sendpath)
|
||||||
channel = gw.remote_exec("""
|
channel = gw.remote_exec("""
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
Loading…
Reference in New Issue