Use correct dirs for database and log.
This commit is contained in:
parent
5d560e1252
commit
5c0e4cb0c2
|
@ -470,7 +470,8 @@ class Config:
|
||||||
|
|
||||||
self.file = file
|
self.file = file
|
||||||
self.dir_self = get_exec_path()
|
self.dir_self = get_exec_path()
|
||||||
self.dir_config = os.path.dirname(self.file)
|
# self.dir_config = os.path.dirname(self.file)
|
||||||
|
self.dir_config = get_default_config_path()
|
||||||
self.dir_log = os.path.join(self.dir_config, 'log')
|
self.dir_log = os.path.join(self.dir_config, 'log')
|
||||||
self.dir_database = os.path.join(self.dir_config, 'database')
|
self.dir_database = os.path.join(self.dir_config, 'database')
|
||||||
self.log_file = os.path.join(self.dir_log, 'fpdb-log.txt')
|
self.log_file = os.path.join(self.dir_log, 'fpdb-log.txt')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user