1. Martin Thorsen Ranang
  2. orbited

Commits

ma...@fe34127c-c842-0410-aa83-9fc675b9a81c  committed a0b814a

0.8: fixed crash on startup when reactor is specified

  • Participants
  • Parent commits 49c26b1
  • Branches 0.8

Comments (0)

Files changed (1)

File daemon/orbited/start.py

View file
  • Ignore whitespace
 # NB: this is set after we load the configuration at "main".
 logger = None
 
+def _import(name):
+    module_import = name.rsplit('.', 1)[0]
+    return reduce(getattr, name.split('.')[1:], __import__(module_import))
 
 def main(start=True, argv=None):
     try: