mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-21 11:27:38 +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):
|
||||
# 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()
|
||||
|
||||
# TODO: Check if there was already a build meta data in static_appversion ?
|
||||
|
||||
else:
|
||||
# Running from source
|
||||
shorthash = git_shorthash_from_head()
|
||||
|
Loading…
x
Reference in New Issue
Block a user