[svn r37458] try to only rsync the py lib, not the dirpath() of it

--HG--
branch : trunk
This commit is contained in:
hpk 2007-01-28 10:07:22 +01:00
parent 9e7886c59b
commit e64d602cd2
1 changed files with 8 additions and 6 deletions

View File

@ -34,14 +34,16 @@ class MySession(RemoteTerminalSession):
print "MASTER: initializing remote socket gateway"
gw = py.execnet.SocketGateway(*self.socketserveradr)
rsync = MyRSync(delete=True)
pkgname = 'py' # xxx flexibilize
channel = gw.remote_exec("""
import os
path = os.path.join(os.environ['HOMEPATH'], 'pytestcache')
channel.send(path)
""")
remotetopdir = channel.receive()
rsync.add_target(gw, remotetopdir)
sendpath = py.path.local(py.__file__).dirpath().dirpath()
topdir = os.path.join(os.environ['HOMEPATH'], 'pytestcache')
pkgdir = os.path.join(topdir, %r)
channel.send((topdir, pkgdir))
""" % (pkgname,))
remotetopdir, remotepkgdir = channel.receive()
rsync.add_target(gw, remotepkgdir)
sendpath = py.path.local(py.__file__).dirpath()
rsync.send(sendpath)
channel = gw.remote_exec("""
import os, sys