handle config file existence
This commit is contained in:
@@ -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__))
|
||||
|
||||
Reference in New Issue
Block a user