mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Add comment about using .parent because non-main script is in library.zip
This commit is contained in:
parent
f16a367986
commit
c1cf90bda3
@ -134,6 +134,7 @@ def appversion() -> semantic_version.Version:
|
||||
"""
|
||||
if getattr(sys, 'frozen', False):
|
||||
# Running frozen, so we should have a .gitversion file
|
||||
# Yes, .parent because if frozen we're inside library.zip
|
||||
with open(pathlib.Path(sys.path[0]).parent / GITVERSION_FILE, 'r', encoding='utf-8') as gitv:
|
||||
shorthash = gitv.read()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user