2016-12-04 08:37:01 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import bumblebee.engine
|
|
|
|
import bumblebee.config
|
2016-12-04 16:14:43 +01:00
|
|
|
import bumblebee.output
|
2016-12-04 08:37:01 +01:00
|
|
|
|
|
|
|
def main():
|
|
|
|
config = bumblebee.config.Config(sys.argv[1:])
|
2016-12-04 16:14:43 +01:00
|
|
|
output = bumblebee.output.I3BarOutput()
|
2016-12-04 08:37:01 +01:00
|
|
|
engine = bumblebee.engine.Engine(
|
2016-12-04 16:14:43 +01:00
|
|
|
config=config,
|
|
|
|
output=output,
|
2016-12-04 08:37:01 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
engine.run()
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2016-12-04 16:23:44 +01:00
|
|
|
try:
|
|
|
|
main()
|
|
|
|
except bumblebee.error.BaseError as error:
|
|
|
|
sys.stderr.write("fatal: {}\n".format(error))
|
|
|
|
sys.exit(1)
|
2016-12-04 08:37:01 +01:00
|
|
|
|
|
|
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|