From 8221afe9653474f85422ddbee550a57191b05a56 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 2 Oct 2022 01:33:57 +0200 Subject: [PATCH] use absolute import to make pyinstaller binaries work again --- src/borg/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/__main__.py b/src/borg/__main__.py index 16279fc8d..a561b79b0 100644 --- a/src/borg/__main__.py +++ b/src/borg/__main__.py @@ -11,6 +11,7 @@ if sys.platform.startswith("win32"): os.environ["PATH"] = os.pathsep.join(dll_path) + os.pathsep + os.environ["PATH"] -from .archiver import main +# note: absolute import from "borg", it seems pyinstaller binaries do not work without this. +from borg.archiver import main main()