[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:
Tobias Witek 2016-11-05 07:54:36 +01:00
parent df27355977
commit a58610f3ee
4 changed files with 100 additions and 2 deletions

View file

@ -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()