[ostree] ostbuild: Use expanduser



commit 986cd2172b930b40e0f20aea022c053fb45ed8f7
Author: Colin Walters <walters verbum org>
Date:   Tue May 1 19:28:39 2012 -0400

    ostbuild: Use expanduser

 src/ostbuild/pyostbuild/builtins.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/builtins.py b/src/ostbuild/pyostbuild/builtins.py
index 949f532..211a14c 100755
--- a/src/ostbuild/pyostbuild/builtins.py
+++ b/src/ostbuild/pyostbuild/builtins.py
@@ -82,10 +82,10 @@ class Builtin(object):
     def parse_config(self):
         self.ostbuildrc = ostbuildrc
 
-        self.mirrordir = ostbuildrc.get_key('mirrordir')
+        self.mirrordir = os.path.expanduser(ostbuildrc.get_key('mirrordir'))
         if not os.path.isdir(self.mirrordir):
             fatal("Specified mirrordir '%s' is not a directory" % (self.mirrordir, ))
-        self.workdir = ostbuildrc.get_key('workdir')
+        self.workdir = os.path.expanduser(ostbuildrc.get_key('workdir'))
         if not os.path.isdir(self.workdir):
             fatal("Specified workdir '%s' is not a directory" % (self.workdir, ))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]