We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14dbc9a commit 4d9daaaCopy full SHA for 4d9daaa
ethancedwards_api/server.py
@@ -15,8 +15,10 @@
15
from ethancedwards_api.jobs.jobs import *
16
from ethancedwards_api.nixpkgs.nixpkgs import *
17
18
+static_dir = os.path.dirname(sys.argv[0]) + '/static'
19
+
20
def main():
- app = Flask(__name__, static_url_path='/static')
21
+ app = Flask(__name__, static_url_path='/static', static_folder=static_dir)
22
api = Api(app)
23
DEV = os.environ.get('DEV')
24
0 commit comments