diff options
author | André Erdmann <dywi@mailerd.de> | 2013-09-16 12:29:08 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2013-09-16 12:29:08 +0200 |
commit | d741cd6327b979d68dcdedba7d051f1faebc19d2 (patch) | |
tree | f6e91c2fa5b5775392e9da29919714398eba3301 | |
parent | doc/rst: automated configuration and setup (diff) | |
download | R_overlay-d741cd6327b979d68dcdedba7d051f1faebc19d2.tar.gz R_overlay-d741cd6327b979d68dcdedba7d051f1faebc19d2.tar.bz2 R_overlay-d741cd6327b979d68dcdedba7d051f1faebc19d2.zip |
roverlay/core, locate_config_file(): prefer .local
if not installed:
(try to) use R-overlay.conf.local as default config file
and fall back to R-overlay.conf
-rw-r--r-- | roverlay/core.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roverlay/core.py b/roverlay/core.py index 2872c48..1a5ac5c 100644 --- a/roverlay/core.py +++ b/roverlay/core.py @@ -148,6 +148,9 @@ def locate_config_file ( if os.path.isfile ( cfg ): return cfg + elif os.path.exists ( CONFIG_FILE_NAME + '.local' ): + return CONFIG_FILE_NAME + '.local' + elif os.path.exists ( CONFIG_FILE_NAME ): return CONFIG_FILE_NAME |