From: Brian Warner Date: Thu, 24 May 2007 18:10:19 +0000 (-0700) Subject: runner.py: expanduser() basedirs, so '~' works. Closes #51. X-Git-Tag: allmydata-tahoe-0.3.0~53 X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/about.html?a=commitdiff_plain;h=d0db98cc4079f19e10ffe6b7c74d25e0b2e36f3c;p=tahoe-lafs%2Ftahoe-lafs.git runner.py: expanduser() basedirs, so '~' works. Closes #51. --- diff --git a/src/allmydata/scripts/runner.py b/src/allmydata/scripts/runner.py index 94acfdb9..4d0d14ed 100644 --- a/src/allmydata/scripts/runner.py +++ b/src/allmydata/scripts/runner.py @@ -74,7 +74,7 @@ class CreateClientOptions(usage.Options): def postOptions(self): if self['basedir'] is None: raise usage.UsageError(" 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 = [