Skip to content

Commit

Permalink
As RO-Crates are now cached in the input directory, fix the relative …
Browse files Browse the repository at this point in the history
…path to be used for the symlink.
  • Loading branch information
jmfernandez committed Aug 31, 2023
1 parent a87a49c commit dbfc4da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wfexs_backend/wfexs_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,10 @@ def getWorkflowBundleFromURI(
if not os.path.exists(roCrateFile):
if os.path.lexists(roCrateFile):
os.unlink(roCrateFile)
os.symlink(os.path.basename(cached_content.path), roCrateFile)
os.symlink(
os.path.relpath(cached_content.path, self.cacheROCrateDir),
roCrateFile,
)

return (
self.getWorkflowRepoFromROCrateFile(
Expand Down

0 comments on commit dbfc4da

Please sign in to comment.