[svn r38201] fixing the windows conftest example to work with

the new rsync interface

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-08 20:23:06 +01:00
parent 3ea6a768e0
commit 0a79e56b40
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,6 @@ class MySession(RemoteTerminalSession):
def _initslavegateway(self):
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
@ -43,9 +42,10 @@ class MySession(RemoteTerminalSession):
channel.send((topdir, pkgdir))
""" % (pkgname,))
remotetopdir, remotepkgdir = channel.receive()
rsync.add_target(gw, remotepkgdir)
sendpath = py.path.local(py.__file__).dirpath()
rsync.send(sendpath)
rsync = MyRSync(sendpath)
rsync.add_target(gw, remotepkgdir, delete=True)
rsync.send()
channel = gw.remote_exec("""
import os, sys
path = %r # os.path.abspath