Ver código fonte

use absolute import to make pyinstaller binaries work again

Thomas Waldmann 2 anos atrás
pai
commit
8221afe965
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/borg/__main__.py

+ 2 - 1
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()