Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndSchuller committed Apr 12, 2024
1 parent 6777ab4 commit 9ceb599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyunicore/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@ def new_job(self, job_description, inputs=[], autostart=True):
if len(inputs) > 0:
working_dir = job.working_dir
for input_item in inputs:
f_name = os.path.basename(input_item)
with open(input_item, "rb") as f:
working_dir.upload(f, input_item)
working_dir.upload(f, f_name)
if autostart and job_description.get("haveClientStageIn", None) == "true":
job.start()
return job
Expand Down

0 comments on commit 9ceb599

Please sign in to comment.