summaryrefslogtreecommitdiff
path: root/rdiff-backup
diff options
context:
space:
mode:
Diffstat (limited to 'rdiff-backup')
-rwxr-xr-xrdiff-backup/testing/chdir-wrapper26
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/testing/chdir-wrapper2 b/rdiff-backup/testing/chdir-wrapper2
index 7fc1312..fef4038 100755
--- a/rdiff-backup/testing/chdir-wrapper2
+++ b/rdiff-backup/testing/chdir-wrapper2
@@ -9,8 +9,10 @@ some other special thing.
import os, sys
-if len(sys.argv) > 1: os.chdir(sys.argv[1])
+if len(sys.argv) > 1:
+ olddir = os.getcwd()
+ os.chdir(sys.argv[1])
#PipeConnection(sys.stdin, sys.stdout).Server()
-os.system("/home/ben/prog/python/rdiff-backup/rdiff-backup --server")
+os.system(os.path.join(olddir, "../rdiff-backup") + " --server")