From e3ba323764edfb10f6286ce33748877f2d404928 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 8 Oct 2024 09:16:33 -0400 Subject: [PATCH] Fix issues with PyInstaller 6.10+ --- src/gam/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 6ac21824..b70a3589 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -100,7 +100,11 @@ from cryptography.hazmat.primitives import hashes, serialization 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