diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2017-03-07 15:17:13 -0800 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2017-03-07 15:17:13 -0800 |
| commit | 9b65f1fdcfcaaa22719a83be26dbcb5dbe855b0c (patch) | |
| tree | e4eddadebad9695a04b451be41ca1e458113a421 /scripts | |
| parent | 9992332be956c173199257b55e592ec2d2331e3a (diff) | |
| download | bmcweb-9b65f1fdcfcaaa22719a83be26dbcb5dbe855b0c.tar.gz bmcweb-9b65f1fdcfcaaa22719a83be26dbcb5dbe855b0c.zip | |
incremental
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/build_web_assets.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build_web_assets.py b/scripts/build_web_assets.py index bb6ded5..e4d8cab 100755 --- a/scripts/build_web_assets.py +++ b/scripts/build_web_assets.py @@ -53,12 +53,12 @@ def main(): pathsplit = full_filepath.split(os.path.sep) relative_path = os.path.sep.join(pathsplit[pathsplit.index("static") + 1:]) - + + relative_path = "/static/" + relative_path + # handle the default routes - if relative_path.endswith("index.html"): - relative_path = "" - - relative_path = "/" + relative_path + if relative_path == "/static/index.html": + relative_path = "/" # make sure none of the files are hidden with open(full_filepath, 'rb') as input_file: |

