[odrs-web/oscp] Adjust the static directory according to what the container expects
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web/oscp] Adjust the static directory according to what the container expects
- Date: Tue, 13 Nov 2018 10:18:15 +0000 (UTC)
commit ed830bb741fba4f6119541029be675040ce10f6b
Author: Andrea Veri <averi redhat com>
Date: Tue Nov 13 11:18:06 2018 +0100
Adjust the static directory according to what the container expects
app_data/app/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app_data/app/views.py b/app_data/app/views.py
index 8231dec..831f606 100644
--- a/app_data/app/views.py
+++ b/app_data/app/views.py
@@ -165,7 +165,7 @@ def oars_index():
@app.route('/<path:resource>')
def static_resource(resource):
""" Return a static image or resource """
- return send_from_directory('static/', os.path.basename(resource))
+ return send_from_directory("%s/app/static/" % os.environ['HOME'], os.path.basename(resource))
@app.errorhandler(400)
def json_error(msg=None, errcode=400):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]