summaryrefslogtreecommitdiff
path: root/rdiff-backup/testing/chdir-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup/testing/chdir-wrapper')
-rwxr-xr-xrdiff-backup/testing/chdir-wrapper4
1 files changed, 3 insertions, 1 deletions
diff --git a/rdiff-backup/testing/chdir-wrapper b/rdiff-backup/testing/chdir-wrapper
index 1d0db7d..ff0155f 100755
--- a/rdiff-backup/testing/chdir-wrapper
+++ b/rdiff-backup/testing/chdir-wrapper
@@ -9,8 +9,10 @@ the server. Otherwise will start the server without a chdir.
import os, sys
+olddir = os.getcwd()
if len(sys.argv) > 1: os.chdir(sys.argv[1])
#PipeConnection(sys.stdin, sys.stdout).Server()
#os.system("/home/ben/prog/python/rdiff-backup/rdiff-backup --server")
-os.system("/home/ben/prog/python/rdiff-backup/testing/server.py /home/ben/prog/python/rdiff-backup/src")
+#os.system("/home/ben/prog/rdiff-backup/server.py /home/ben/prog/python/rdiff-backup/src")
+os.system("%s/server.py" % (olddir,))