Add comment about using .parent because non-main script is in library.zip

This commit is contained in:
Athanasius committed 2021-04-12 08:31:46 +01:00
1 parent f16a367986
commit c1cf90bda3
1 file changed
+1
+1
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()