]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
runner.py: expanduser() basedirs, so '~' works. Closes #51.
authorBrian Warner <warner@allmydata.com>
Thu, 24 May 2007 18:10:19 +0000 (11:10 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 24 May 2007 18:10:19 +0000 (11:10 -0700)
src/allmydata/scripts/runner.py

index 94acfdb92ccd297b4fd85aaf175272b7bdc7983a..4d0d14ed89d49dbaeb40ecd9cde1c2521b5792b7 100644 (file)
@@ -74,7 +74,7 @@ class CreateClientOptions(usage.Options):
     def postOptions(self):
         if self['basedir'] is None:
             raise usage.UsageError("<basedir> parameter is required")
-        self['basedir'] = os.path.abspath(self['basedir'])
+        self['basedir'] = os.path.abspath(os.path.expanduser(self['basedir']))
 
 class CreateIntroducerOptions(usage.Options):
     optParameters = [