2019-09-11 22:47:06 +02:00
|
|
|
#!/usr/bin/env python3
|
2015-03-31 20:15:22 +02:00
|
|
|
|
|
|
|
import os
|
2019-08-28 03:46:04 +02:00
|
|
|
import sys
|
|
|
|
|
2019-09-11 22:47:06 +02:00
|
|
|
INTERP = os.path.expanduser("~/env/bin/python3")
|
2015-03-31 20:15:22 +02:00
|
|
|
if sys.executable != INTERP:
|
|
|
|
os.execl(INTERP, INTERP, *sys.argv)
|
|
|
|
|
|
|
|
sys.path.append(os.getcwd())
|
2019-09-11 22:47:06 +02:00
|
|
|
from app import create_app
|
|
|
|
application = create_app().app
|
2019-08-28 03:46:04 +02:00
|
|
|
|
|
|
|
# For running on the server with passenger etc
|
|
|
|
if __name__ == "__main__":
|
2019-09-11 22:47:06 +02:00
|
|
|
application.run()
|