From ffabb9c28403c94c7fd3df8202eb4ecc04446f7f Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 13 Jul 2015 20:54:59 +0200 Subject: [PATCH] style-improvements at cmdline-arg-parsing --- tsstats.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tsstats.py b/tsstats.py index 98b9999..8fd8a9c 100755 --- a/tsstats.py +++ b/tsstats.py @@ -227,10 +227,8 @@ def parse_config(config_path): def main(): # check cmdline-args - config_path = argv[1] if len(argv) >= 2 else 'config.ini' - config_path = abspath + config_path - id_map_path = argv[2] if len(argv) >= 3 else 'id_map.json' - id_map_path = abspath + id_map_path + config_path = abspath + (argv[1] if len(argv) >= 2 else 'config.ini') + id_map_path = abspath + (argv[2] if len(argv) >= 3 else 'id_map.json') if not exists(config_path): raise Exception('Couldn\'t find config-file at {}'.format(config_path))