summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config.py b/src/config.py
index 2134513f..47262e28 100644
--- a/src/config.py
+++ b/src/config.py
@@ -251,7 +251,12 @@ options = parse_args(CONFIG_PATH)
# Copy a default file if none exists
if not path.isfile(options.filename):
- copy2(path.join(path.dirname(__file__), '../data/default_config.cfg'), options.filename)
+ default = path.join(path.dirname(__file__), '../data/default_config.cfg')
+ other = '/etc/poezio/default_config.cfg'
+ if path.isfile(default):
+ copy2(default, options.filename)
+ elif path.isfile(other):
+ copy2(other, options.filename)
firstrun = True
config = Config(options.filename)