mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 10:53:26 +03:00
Use full path to open .gitversion out of paranoia.
This commit is contained in:
parent
0b88117844
commit
f16a367986
@ -134,11 +134,9 @@ def appversion() -> semantic_version.Version:
|
|||||||
"""
|
"""
|
||||||
if getattr(sys, 'frozen', False):
|
if getattr(sys, 'frozen', False):
|
||||||
# Running frozen, so we should have a .gitversion file
|
# Running frozen, so we should have a .gitversion file
|
||||||
with open(GITVERSION_FILE, 'r', encoding='utf-8') as gitv:
|
with open(pathlib.Path(sys.path[0]).parent / GITVERSION_FILE, 'r', encoding='utf-8') as gitv:
|
||||||
shorthash = gitv.read()
|
shorthash = gitv.read()
|
||||||
|
|
||||||
# TODO: Check if there was already a build meta data in static_appversion ?
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Running from source
|
# Running from source
|
||||||
shorthash = git_shorthash_from_head()
|
shorthash = git_shorthash_from_head()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user