Skip to content

Commit

Permalink
Fix issues with PyInstaller 6.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Lee authored and Jay Lee committed Oct 8, 2024
1 parent 2d7153e commit e3ba323
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.x509.oid import NameOID

sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
# 10/2024 - I don't recall why we did this but PyInstaller
# 6.10.0+ does not like it. Only run this when we're not
# Frozen.
if not getattr(sys, 'frozen', False):
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))

from dateutil.relativedelta import relativedelta

Expand Down

0 comments on commit e3ba323

Please sign in to comment.