From 775d3a4b6cb355a8b81cf649f20057a1ead23d0f Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Sat, 14 Jan 2023 13:37:24 +0100 Subject: [PATCH] handle config file existence --- src/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.py b/src/config.py index 15c5c70..3ebb294 100644 --- a/src/config.py +++ b/src/config.py @@ -15,6 +15,7 @@ if Path(config_file_path).is_file(): LOGS_DIR = config['DEFAULT']['LOGS_DIR'] else: print("config file not found") + LOGS_DIR = home username = getpass.getuser() LOG_SOURCE = username ROOT_DIR = os.path.dirname(os.path.abspath(__file__))