mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Fix finding version in PyInstaller spec
This commit is contained in:
parent
0c6c05a29e
commit
26adc1b3ab
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
|||
# -*- mode: python -*-
|
||||
import sys
|
||||
import os
|
||||
import inspect
|
||||
import platform
|
||||
|
@ -12,10 +11,9 @@ root = os.path.dirname(
|
|||
os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
)
|
||||
)
|
||||
sys.path.insert(0, root)
|
||||
import dangerzone
|
||||
with open(os.path.join(root, "share", "version.txt")) as f:
|
||||
version = f.read().strip()
|
||||
|
||||
version = dangerzone.dangerzone_version
|
||||
print("Dangerzone version: {}".format(version))
|
||||
|
||||
if p == "Darwin":
|
||||
|
|
Loading…
Reference in a new issue