Skip to content

Commit

Permalink
Fix path statement
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Sep 6, 2024
1 parent 32f8af6 commit 2f7fa29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lsst/cmservice/handlers/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def _write_script(
bps_wms_script_template,
)

submit_path = os.path.abspath(os.path.expandvars(f"{prod_area}/{parent.fullname}/submit"))
submit_path = os.path.abspath(f"{prod_area}/{parent.fullname}/submit")
try:
os.rmdir(submit_path)
except Exception: # pylint: disable=broad-exception-caught
Expand Down Expand Up @@ -226,7 +226,7 @@ async def _check_htcondor_job(
htcondor_status = await ScriptHandler._check_htcondor_job(self, session, htcondor_id, script, parent)
if htcondor_status == StatusEnum.accepted:
await script.update_values(session, status=StatusEnum.accepted)
wms_job_id = os.path.join(os.path.dirname(script.log_url, "submit"))
wms_job_id = os.path.join(os.path.dirname(script.log_url), "submit")
await parent.update_values(session, wms_job_id=wms_job_id)
return htcondor_status

Expand Down

0 comments on commit 2f7fa29

Please sign in to comment.