1
0
Fork 0
mirror of synced 2024-05-18 19:42:54 +12:00

Rare: expand LEGENDARY_CONFIG_PATH before using it.

This commit is contained in:
loathingKernel 2023-12-16 13:50:48 +02:00
parent 0bd34af720
commit 79df146348
No known key found for this signature in database
GPG key ID: CE0C72D0B53821FD

View file

@ -18,6 +18,8 @@ def main() -> int:
sys.stderr = open(os.devnull, 'w')
os.environ["QT_QPA_PLATFORMTHEME"] = ""
if "LEGENDARY_CONFIG_PATH" in os.environ:
os.environ["LEGENDARY_CONFIG_PATH"] = os.path.expanduser(os.environ["LEGENDARY_CONFIG_PATH"])
# fix cx_freeze
multiprocessing.freeze_support()