Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Change all paths in output files to relative paths #32

@robertbruntz

Description

@robertbruntz

Currently, VET output files have their run paths hard-coded into the HTML files, which makes it very difficult to move or rename the runs. E.g., a run located at /home/detchar/public_html/vet/o4_review/h1_omicron_test1/ could be copied to /home/detchar/public_html/vet/o4_review/h1_omicron_test1_renamed/, but all of the links on the different pages will still point to files and directories in /home/detchar/public_html/vet/o4_review/h1_omicron_test1/, including links to images. If the original run needed to be archived, a restored version would only function properly if restored to the same path as it was originally run from.

A sed or similar text-modification command could probably be used to change the links, but that hasn't been developed or tested.

It might be possible to modify the code that generates the output files to use relative paths in all output HTML files, so that the run dir can be easily moved, and the paths will be agnostic and indifferent to their location, as long as the relative paths (mainly to images) are preserved. (Note that I don't know how big of a change this would require within GWPy, GWSumm, and/or other packages or how difficult that would be.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions