use absolute import to make pyinstaller binaries work again

This commit is contained in:
Thomas Waldmann 2022-10-02 01:33:57 +02:00
parent fa83fa1c23
commit 8221afe965
1 changed files with 2 additions and 1 deletions

View File

@ -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()