Skip to content

Commit

Permalink
🔧 create workir if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
juanesarango committed May 10, 2024
1 parent 2afa800 commit 8948c52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toil_container/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def singularity_call(
# ensure singularity doesn't overwrite $HOME by pointing to dummy dir
# /tmp will be mapped to work_dir/scratch/tmp and removed after the call
home_dir = ".unused_home"
if not os.path.exists(working_dir):
os.makedirs(working_dir)
work_dir = mkdtemp(prefix=_TMP_PREFIX, dir=working_dir)
singularity_args = [
"--home",
Expand Down

0 comments on commit 8948c52

Please sign in to comment.