Find default podman paths using shutil.which instead of /usr/bin/env

main
Felix Stupp 2 years ago
parent c82ff6546c
commit 05e8494702
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -28,6 +28,7 @@ import argparse
from functools import cached_property, wraps from functools import cached_property, wraps
import os import os
from pathlib import Path, PurePath from pathlib import Path, PurePath
import shutil
import sys import sys
from typing import ( from typing import (
Dict, Dict,
@ -102,18 +103,8 @@ DEFAULT_BACKUP_CMD = "tar -cf - ."
DEFAULT_RESTORE_CMD = "tar -xf -" DEFAULT_RESTORE_CMD = "tar -xf -"
PODMAN_EXEC = ArgCommand( PODMAN_EXEC = shutil.which("podman")
[ PODMAN_COMPOSE_EXEC = shutil.which("podman-compose")
"/usr/bin/env",
"podman",
]
)
PODMAN_COMPOSE_EXEC = ArgCommand(
[
"/usr/bin/env",
"podman-compose",
]
)
# === helpers # === helpers

Loading…
Cancel
Save