diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-07 19:18:55 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2002-12-07 19:18:55 +0000 |
commit | 390e37074558f83a2df042019910a73a03a0c1fa (patch) | |
tree | defd70009b8c1174fdc729eb8578ffcb7352d21a /rdiff-backup/testing/chdir-wrapper2 | |
parent | 6e531149dc45115b875eed61d5aec13cf1055f5c (diff) | |
download | rdiff-backup-390e37074558f83a2df042019910a73a03a0c1fa.tar.gz |
Updated to fit new CVS format
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@242 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/testing/chdir-wrapper2')
-rwxr-xr-x | rdiff-backup/testing/chdir-wrapper2 | 6 |
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") |