handle config file existence

This commit is contained in:
2023-01-14 13:37:24 +01:00
parent 17f675fa09
commit 775d3a4b6c
+1
View File
@@ -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__))