From 3b33ee01f6f41827b3518244b3805773caa1b3a4 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 4 Dec 2013 15:27:25 +0100 Subject: [PATCH] FIX paths (chdir to executable) --- server/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index 27cb26b..3063bdc 100644 --- a/server/server.py +++ b/server/server.py @@ -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)