From b80bb2fcfcceb9b00a3fec02280e93da33ba8bd0 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 3 Jul 2018 12:32:31 +0200 Subject: Only create the config dir after parsing the CLI args. This also switches to pathlib.Path instead of os.path for path manipulation. --- poezio/poezio.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'poezio/poezio.py') 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() -- cgit v1.2.3