-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin moving out plugin handling from UI layer, now done with PluginW…
…rappers owning this pre-load of UI
- Loading branch information
Showing
9 changed files
with
183 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
import logging | ||
|
||
from joystick_diagrams.app_state import AppState | ||
from joystick_diagrams.db import db_init | ||
from joystick_diagrams.plugin_manager import ParserPluginManager | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
def init(): | ||
# TODO log and orchestrate this better | ||
|
||
# Setup datastore | ||
db_init.init() | ||
# ------------------------------- | ||
|
||
# Get global state object | ||
_state = AppState() | ||
# ------------------------------- | ||
|
||
# -- Initialise Plugins System -- | ||
|
||
# Initialise Plugins System | ||
plugins = ParserPluginManager() | ||
plugins.load_discovered_plugins() | ||
_state.init_plugins(plugins) | ||
|
||
# ------------------------------- | ||
|
||
|
||
if __name__ == "__main__": | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.