From 7ee2dca547ec616809add97255270db815b81d35 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 4 Oct 2020 20:59:06 +0200 Subject: [PATCH] pyinstaller: compute basepath from spec file location so it does not just run on the vagrant machine, but also everywhere else. --- scripts/borg.exe.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/borg.exe.spec b/scripts/borg.exe.spec index 04f6b10a..be7e1e13 100644 --- a/scripts/borg.exe.spec +++ b/scripts/borg.exe.spec @@ -7,12 +7,11 @@ is_win32 = sys.platform.startswith('win32') # Note: SPEC contains the spec file argument given to pyinstaller here = os.path.dirname(os.path.abspath(SPEC)) +basepath = os.path.abspath(os.path.join(here, '..')) if is_win32: - basepath = os.path.abspath(os.path.join(here, '..')) hiddenimports = [] else: - basepath = '/vagrant/borg/borg' hiddenimports = ['borg.platform.posix', 'pkg_resources.py2_warn', ] block_cipher = None