mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-28 01:28:46 -04: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
7b8cfce307
commit
b1f8037ef4
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@
|
|||
|
||||
import os, sys
|
||||
|
||||
basepath = '/vagrant/borg/borg'
|
||||
# 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, '..'))
|
||||
|
||||
block_cipher = None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue