Skip to content

Commit 6d46683

Browse files
committed
Changing path check to allow something that is path like, as the container may not exist local to the local node
1 parent adb7300 commit 6d46683

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/jetstream/backends/slurm_singularity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ async def spawn(self, task):
211211
singularity_hostname = None
212212
docker_authentication_token = None
213213
else:
214-
if os.path.exists(container) or os.PathLike(container):
214+
if os.path.exists(container) or container.startswith("/"):
215215
singularity_image = container
216216
singularity_hostname = None
217217
docker_authentication_token = None

0 commit comments

Comments
 (0)