From 79df1463485fd1c7ac0dc58de4b579d1a742af1c Mon Sep 17 00:00:00 2001 From: loathingKernel <142770+loathingKernel@users.noreply.github.com> Date: Sat, 16 Dec 2023 13:50:48 +0200 Subject: [PATCH] Rare: expand `LEGENDARY_CONFIG_PATH` before using it. --- rare/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rare/main.py b/rare/main.py index 54c2d661..5bf89d58 100755 --- a/rare/main.py +++ b/rare/main.py @@ -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()