mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 06:01:54 +00:00
pyinstaller: compute basepath from spec file location
so it does not just run on the vagrant machine, but also everywhere else.
This commit is contained in:
parent
ce625db204
commit
7ee2dca547
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue