mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 01:20:16 +00:00
Fix the Database no being put on the right path according with the config.toml
This commit is contained in:
parent
bdaa37e355
commit
967c7e4ce6
@@ -7,14 +7,15 @@ from pilgrim.utils import ConfigManager
|
||||
class Application:
|
||||
def __init__(self):
|
||||
self.config_manager = ConfigManager()
|
||||
self.config_manager.read_config() # Chamar antes de criar o Database
|
||||
self.database = Database(self.config_manager)
|
||||
session = self.database.session()
|
||||
session_manager = ServiceManager()
|
||||
session_manager.set_session(session)
|
||||
self.ui = UIApp(session_manager,self.config_manager)
|
||||
self.ui = UIApp(session_manager, self.config_manager)
|
||||
|
||||
def run(self):
|
||||
self.config_manager.read_config()
|
||||
print(f"URL do banco: {self.config_manager.database_url}")
|
||||
self.database.create()
|
||||
self.ui.run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user