diff options
author | mathieui <mathieui@mathieui.net> | 2013-05-26 20:07:12 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-05-26 20:13:39 +0200 |
commit | 2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2 (patch) | |
tree | 10a77ef05670ec575e2c3357e0b3df9b0847a261 /src/config.py | |
parent | 1b9dc72d14f52d55a936d92311c18912567359a4 (diff) | |
download | poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.tar.gz poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.tar.bz2 poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.tar.xz poezio-2b42c6a3ead7c2bd35bbea1c6d704a4f89a4c8a2.zip |
Update setup.py to use distutils
(use new default directory, install the plugins as a separate
python moduleā¦)
Diffstat (limited to 'src/config.py')
-rw-r--r-- | src/config.py | 7 |
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) |