chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
173ff21
)
Expand vars properly
author
Daniel Martí
<mvdan@mvdan.cc>
Sat, 7 Dec 2013 12:20:22 +0000
(13:20 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Sat, 7 Dec 2013 12:20:22 +0000
(13:20 +0100)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 3b524e9ed614b5db76558d2311123b744f63c896..58d024a51cd4cb5872ea894132a6d7671d38b149 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-77,8
+77,7
@@
def read_config(opts, config_file='config.py'):
for k, v in config.items():
if type(v) != str:
continue
- if v[0] == '$':
- config[k] = os.environ[v[1:]]
+ config[k] = os.path.expandvars(v)
# Check that commands and binaries do exist
for key in ('mvn3', 'gradle'):