FIX paths (chdir to executable)

This commit is contained in:
boyska 2013-12-04 15:27:25 +01:00
parent 82f6ea926e
commit 3b33ee01f6

View file

@ -250,7 +250,8 @@ class RecServer:
if __name__ == "__main__":
os.chdir(os.path.dirname(os.path.realpath(__file__)))
get_config().from_pyfile("default_config.py")
c = RecServer()
c._app.mount('/date', DateApp())
c._app.run(host="localhost", port="8000", debug=True, reloader=True)
c._app.run(host="localhost", port="8000", debug=True)