From d0db98cc4079f19e10ffe6b7c74d25e0b2e36f3c Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 24 May 2007 11:10:19 -0700 Subject: [PATCH] runner.py: expanduser() basedirs, so '~' works. Closes #51. --- src/allmydata/scripts/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [ -- 2.45.2