chiark / gitweb /
Also allow for '~' and '~user'
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 7 Dec 2013 12:21:45 +0000 (13:21 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 7 Dec 2013 12:21:45 +0000 (13:21 +0100)
fdroidserver/common.py

index 58d024a51cd4cb5872ea894132a6d7671d38b149..5b3d7c620234d897f3bf0787583122b36c612a18 100644 (file)
@@ -77,6 +77,7 @@ def read_config(opts, config_file='config.py'):
     for k, v in config.items():
         if type(v) != str:
             continue
+        v = os.path.expanduser(v)
         config[k] = os.path.expandvars(v)
 
     # Check that commands and binaries do exist