[projects/git-slug: 53/170] Expand ~ in configuration file
glen
glen at pld-linux.org
Mon Sep 21 21:43:16 CEST 2015
commit 036174c7f7439e6ce683bc00bfa22aa1b719fd14
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Thu Sep 29 14:08:35 2011 +0100
Expand ~ in configuration file
Only variables that contains paths are expanded.
slug.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/slug.py b/slug.py
index a968f3b..db55dd1 100755
--- a/slug.py
+++ b/slug.py
@@ -61,6 +61,10 @@ def readconfig(path):
for option in ('jobs'):
if config.has_option('PLD',option):
optionslist[option] = config.getint('PLD', option)
+
+ for pathopt in ('packagesdir', 'remoterefs'):
+ if pathopt in optionslist:
+ optionslist[pathopt] = os.path.expanduser(optionslist[pathopt])
return optionslist
def initpackage(name, options):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list