Commits

Anonymous committed 0ea7e42

allow main without reactor.run

Comments (0)

Files changed (1)

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):