MCPcopy
hub / github.com/freedomofpress/dangerzone / get_podman_path

Function get_podman_path

dangerzone/container_utils.py:69–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68
69def get_podman_path() -> Path | None:
70 podman_bin = "podman"
71 if platform.system() == "Linux":
72 return None # Use default Podman location
73 elif platform.system() == "Windows":
74 podman_bin += ".exe"
75 return get_resource_path("vendor") / "podman" / podman_bin
76
77
78def make_seccomp_json_accessible() -> Path | PurePosixPath:

Callers 2

create_containers_confFunction · 0.85
init_podman_commandFunction · 0.85

Calls 1

get_resource_pathFunction · 0.85

Tested by

no test coverage detected