mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
adding creation of app/config/db directory to helper so if it's not there,it will be created
bug introduced by commit 102f63c7
This commit is contained in:
parent
5270bdcc3d
commit
1542f2559a
@ -39,6 +39,7 @@ class Helpers:
|
|||||||
self.session_file = os.path.join(self.root_dir, 'app', 'config', 'session.lock')
|
self.session_file = os.path.join(self.root_dir, 'app', 'config', 'session.lock')
|
||||||
self.settings_file = os.path.join(self.root_dir, 'app', 'config', 'config.json')
|
self.settings_file = os.path.join(self.root_dir, 'app', 'config', 'config.json')
|
||||||
|
|
||||||
|
self.ensure_dir_exists(os.path.join(self.root_dir, 'app', 'config', 'db'))
|
||||||
self.db_path = os.path.join(self.root_dir, 'app', 'config', 'db', 'crafty.sqlite')
|
self.db_path = os.path.join(self.root_dir, 'app', 'config', 'db', 'crafty.sqlite')
|
||||||
self.serverjar_cache = os.path.join(self.config_dir, 'serverjars.json')
|
self.serverjar_cache = os.path.join(self.config_dir, 'serverjars.json')
|
||||||
self.passhasher = PasswordHasher()
|
self.passhasher = PasswordHasher()
|
||||||
|
Loading…
Reference in New Issue
Block a user