aboutsummaryrefslogtreecommitdiffstats
path: root/pathod
diff options
context:
space:
mode:
Diffstat (limited to 'pathod')
-rwxr-xr-xpathod9
1 files changed, 5 insertions, 4 deletions
diff --git a/pathod b/pathod
index 4340e2d1..100a70a2 100755
--- a/pathod
+++ b/pathod
@@ -1,6 +1,6 @@
#!/usr/bin/env python
import argparse
-import libpathod
+from libpathod import app
import tornado.ioloop
if __name__ == "__main__":
@@ -12,10 +12,11 @@ if __name__ == "__main__":
)
args = parser.parse_args()
- libpathod.application(staticdir=args.staticdir).listen(args.port)
+ application = app.PathodApp(
+ staticdir=args.staticdir
+ )
print "pathod listening on port %s"%args.port
try:
- tornado.ioloop.IOLoop.instance().start()
+ app.run(application, args.port, None)
except KeyboardInterrupt:
pass
-