1
0
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:
Athanasius 2021-04-02 19:33:13 +01:00
parent f16a367986
commit c1cf90bda3

View File

@ -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()