FIX paths (chdir to executable)
This commit is contained in:
parent
82f6ea926e
commit
3b33ee01f6
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue