[config] Start refactoring by creating separate config class
Add a class that will hold all configuration and argument information and serve as central repository for this kind of information.
This commit is contained in:
parent
df27355977
commit
a58610f3ee
4 changed files with 100 additions and 2 deletions
|
@ -1,11 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import bumblebee.config
|
||||
import bumblebee.engine
|
||||
|
||||
def main():
|
||||
args = bumblebee.engine.Arguments()
|
||||
config = bumblebee.config.Config(sys.argv[1:])
|
||||
|
||||
engine = bumblebee.engine.Engine(args.args())
|
||||
engine = bumblebee.engine.Engine(config)
|
||||
engine.load_modules()
|
||||
engine.register_events()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue