Repository: climate Updated Branches: refs/heads/master c6249f641 -> 4bcd9d071
CLIMATE-740 - Add path handler for img directory to run_webservices.py. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/0837468b Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/0837468b Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/0837468b Branch: refs/heads/master Commit: 0837468bf7185d69635c53ed0c4787b4d9745991 Parents: adf9ccd Author: MichaelArthurAnderson <[email protected]> Authored: Sun Jan 31 14:26:38 2016 -0500 Committer: MichaelArthurAnderson <[email protected]> Committed: Sun Jan 31 14:26:38 2016 -0500 ---------------------------------------------------------------------- ocw-ui/backend/run_webservices.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/0837468b/ocw-ui/backend/run_webservices.py ---------------------------------------------------------------------- diff --git a/ocw-ui/backend/run_webservices.py b/ocw-ui/backend/run_webservices.py index 3f38e2c..dae2567 100644 --- a/ocw-ui/backend/run_webservices.py +++ b/ocw-ui/backend/run_webservices.py @@ -49,10 +49,14 @@ def serve_static(path): def serve_static(path): return static_file(path, root='./frontend/app/views/') [email protected]('/img/:path#.+#') +def server_static(path): + return static_file(path, root='./frontend/app/img/') + @app.route('/static/eval_results/<file_path:path>') def get_eval_result_image(file_path): ''' Return static file. - + Return static file specified by root + filepath where root defaults to: /tmp/ocw
