Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions active_plugins/runcellpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,9 +960,9 @@ def run(self, workspace):
else:
if self.docker_or_python.value == "Docker":
# Define how to call docker
docker_path = "docker" if sys.platform.lower().startswith("win") else "/usr/local/bin/docker"
docker_path = "docker" if sys.platform.lower().startswith("win") else (shutil.which("docker") or "/usr/local/bin/docker")
else:
docker_path = "podman" if sys.platform.lower().startswith("win") else "/opt/podman/bin/podman"
docker_path = "podman" if sys.platform.lower().startswith("win") else (shutil.which("podman") or "/opt/podman/bin/podman")
# Create a UUID for this run
unique_name = str(uuid.uuid4())
# Directory that will be used to pass images to the docker container
Expand Down
4 changes: 2 additions & 2 deletions active_plugins/runilastik.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ def run(self, workspace):
else:
if self.docker_or_local.value == "Docker":
# Define how to call docker
docker_path = "docker" if sys.platform.lower().startswith("win") else "/usr/local/bin/docker"
docker_path = "docker" if sys.platform.lower().startswith("win") else (shutil.which("docker") or "/usr/local/bin/docker")
else:
docker_path = "podman" if sys.platform.lower().startswith("win") else "/opt/podman/bin/podman"
docker_path = "podman" if sys.platform.lower().startswith("win") else (shutil.which("podman") or "/opt/podman/bin/podman")
# The project file is stored in a directory which can be pointed to the docker
model_file = self.project_file.value
model_directory = os.path.dirname(os.path.abspath(model_file))
Expand Down