From 390e37074558f83a2df042019910a73a03a0c1fa Mon Sep 17 00:00:00 2001 From: bescoto Date: Sat, 7 Dec 2002 19:18:55 +0000 Subject: Updated to fit new CVS format git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@242 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/testing/chdir-wrapper2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rdiff-backup/testing') 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") -- cgit v1.2.1