choderalab / TargetExplorer

Database framework with RESTful API for aggregating genomic, structural, and functional data for target protein families.
GNU General Public License v2.0
6 stars 7 forks source link

Move .cs stylesheet from hard-coded directory #4

Closed jchodera closed 10 years ago

jchodera commented 10 years ago

Currently, the .cs stylesheet is in a hard-coded directory:

    <link type="text/css" href="/Users/partond/dev/TargetExplorerDB/TargetExplorer/seqlib.cs" rel="stylesheet"/>

Would be useful if a copy was dumped into the analysis output directories, like TargetExplorerDB/analysis/PDB_construct_selection/alignments/

danielparton commented 10 years ago

I've changed the script to use a relative path to link to the stylesheet, which is stored in the TargetExplorer library folder (along with the project Python modules). See the new pull request. The HTML alignment files are updated too.

The stylesheet file is used for a number of other scripts which output HTML files, so I think I prefer this behavior to copying the stylesheet file around to various different folders each time a certain script is run.

danielparton commented 10 years ago

@jchodera Let me know if this sounds reasonable, and I'll merge.

jchodera commented 10 years ago

Works for now! Merge away!

danielparton commented 10 years ago

I changed my mind... Now the CSS file is stored as a method in a Python module, and written by the construct selection script to the alignments folder. The HTML alignment files link to the CSS file in the same folder.