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']
|
LOGS_DIR = config['DEFAULT']['LOGS_DIR']
|
||||||
else:
|
else:
|
||||||
print("config file not found")
|
print("config file not found")
|
||||||
|
LOGS_DIR = home
|
||||||
username = getpass.getuser()
|
username = getpass.getuser()
|
||||||
LOG_SOURCE = username
|
LOG_SOURCE = username
|
||||||
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|||||||
Reference in New Issue
Block a user