diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-03 12:32:31 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-03 12:32:37 +0200 |
commit | b80bb2fcfcceb9b00a3fec02280e93da33ba8bd0 (patch) | |
tree | a16b35eed09e8b5465585626cd6dfa9e262d66cc /poezio/poezio.py | |
parent | 5483cd40ee1e84e86bfe775ba06ca9d7d5d5a0ea (diff) | |
download | poezio-b80bb2fcfcceb9b00a3fec02280e93da33ba8bd0.tar.gz poezio-b80bb2fcfcceb9b00a3fec02280e93da33ba8bd0.tar.bz2 poezio-b80bb2fcfcceb9b00a3fec02280e93da33ba8bd0.tar.xz poezio-b80bb2fcfcceb9b00a3fec02280e93da33ba8bd0.zip |
Only create the config dir after parsing the CLI args.
This also switches to pathlib.Path instead of os.path for path
manipulation.
Diffstat (limited to 'poezio/poezio.py')
-rw-r--r-- | poezio/poezio.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py index d74eca74..ee6cd6db 100644 --- a/poezio/poezio.py +++ b/poezio/poezio.py @@ -77,8 +77,7 @@ def main(): sys.stdout.write("\x1b]0;poezio\x07") sys.stdout.flush() from poezio import config - config_path = config.check_create_config_dir() - config.run_cmdline_args(config_path) + config.run_cmdline_args() config.create_global_config() config.check_create_data_dir() config.check_create_log_dir() |