aboutsummaryrefslogtreecommitdiffstats
path: root/python/flask-run.py
blob: 829da808bede1dda0922b179a9401662c6cc1d99 (plain)
1
2
3
4
5
6
7
8
9
import sys
import importlib

if len(sys.argv) < 2:
    print("please enter the name of the Flask app")
    print("currently Dawn, task_server or risk_insight")
else:
    mod = importlib.import_module(sys.argv[1])
    mod.app.run(debug=True)