Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion WAVE2SCORE/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ def run_job(job_id: str):
return

job_dir = Path(job["job_dir"])
input_path = Path(job["input_path"])
input_path = Path(job["input_path"]).resolve()
out_base = str(job_dir / "result")

if not str(input_path).startswith(str(WORK_DIR.resolve())):
raise RuntimeError("Invalid input path: outside of work directory")

try:
set_job(job_id, status="running", message="Running main.py")

Expand Down