aboutsummaryrefslogtreecommitdiffstats
path: root/dlu.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-11-26 02:52:48 +0100
committerMattias Andrée <maandree@kth.se>2016-11-26 02:52:48 +0100
commitcfdd4dbab72cdc18b64e95551e35bc1da8b11d60 (patch)
treeac9de3c9bd5db36fb0e0c798e61fce13cf62d89a /dlu.py
parentsmall improvements (diff)
downloaddlu-cfdd4dbab72cdc18b64e95551e35bc1da8b11d60.tar.gz
dlu-cfdd4dbab72cdc18b64e95551e35bc1da8b11d60.tar.bz2
dlu-cfdd4dbab72cdc18b64e95551e35bc1da8b11d60.tar.xz
Add example
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'dlu.py')
-rwxr-xr-xdlu.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/dlu.py b/dlu.py
index ddbcc32..8783e7d 100755
--- a/dlu.py
+++ b/dlu.py
@@ -61,6 +61,7 @@ for key in l:
g[key] = l[key]
# Possible auto-selected configuration scripts,
# earlier ones have precedence, we can only select one.
+config_file = None
for file in ('$XDG_CONFIG_HOME/%/%rc', '$HOME/.config/%/%rc', '$HOME/.%rc', '$~/.config/%/%rc', '$~/.%rc', '/etc/%rc'):
# Expand short-hands
file = file.replace('/', os.sep).replace('%', 'dlu')