mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-18 18:19:16 -05:00
Merge pull request #9331 from ThomasWaldmann/fix-cockpit-commandline
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
cockpit: fix subprocess invocation in frozen binaries
This commit is contained in:
commit
079aebb26c
1 changed files with 4 additions and 1 deletions
|
|
@ -28,7 +28,10 @@ class BorgRunner:
|
|||
self.logger.warning("Borg process already running.")
|
||||
return
|
||||
|
||||
cmd = [sys.executable, "-m", "borg"] + self.command
|
||||
if getattr(sys, "frozen", False):
|
||||
cmd = [sys.executable] + self.command # executable == pyinstaller binary
|
||||
else:
|
||||
cmd = [sys.executable, "-m", "borg"] + self.command # executable == python interpreter
|
||||
|
||||
self.logger.info(f"Starting Borg process: {cmd}")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue