Commits

heya...@fe34127c-c842-0410-aa83-9fc675b9a81c  committed 0ea7e42

allow main without reactor.run

  • Participants
  • Parent commits 1f8bb22
  • Branches 0.8

Comments (0)

Files changed (1)

File daemon/orbited/start.py

 logger = None
 
 
-def main():
+def main(start=True):
     try:
         import twisted
     except ImportError:
         prof.runcall(reactor.run)
         prof.close()
     else:
-        reactor.run()
+        if start:
+            reactor.run()
+        else:
+            return site
 
 
 def _setup_static(root, config):