14 lines
312 B
Python
14 lines
312 B
Python
import os
|
|
import sys
|
|
|
|
INTERP = os.path.expanduser("~/venv/bin/python3")
|
|
if sys.executable != INTERP:
|
|
os.execl(INTERP, INTERP, *sys.argv)
|
|
|
|
sys.path.append(os.getcwd())
|
|
from blokdata.app import app as application
|
|
|
|
# For running on the server with passenger etc
|
|
if __name__ == "__main__":
|
|
application.run()
|