From d125a5004bd81d155928f10510aaa50b5e59a289 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Thu, 17 Jun 2021 10:31:07 -0700 Subject: [PATCH] Find docker.exe in the path, in case Docker Desktop changes its location in the future --- dangerzone/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dangerzone/container.py b/dangerzone/container.py index c3d00d7..5547b7c 100644 --- a/dangerzone/container.py +++ b/dangerzone/container.py @@ -9,7 +9,7 @@ import shutil if platform.system() == "Darwin": container_runtime = "/usr/local/bin/docker" elif platform.system() == "Windows": - container_runtime = "C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe" + container_runtime = shutil.which("docker.exe") else: container_runtime = shutil.which("docker")