From 600f6a97d5a3aa2dd0b6bf26ab48f4aef5d3667b Mon Sep 17 00:00:00 2001 From: DepFA <35278260+dfaker@users.noreply.github.com> Date: Sat, 18 Feb 2023 23:19:48 +0000 Subject: [PATCH] check parent path for mpv dll load --- src/modalWindows.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modalWindows.py b/src/modalWindows.py index 1fa107e..2721c2a 100644 --- a/src/modalWindows.py +++ b/src/modalWindows.py @@ -20,9 +20,14 @@ try: scriptPath = os.path.dirname(os.path.abspath(__file__)) + + parentScriptPath = os.path.split( os.path.dirname(os.path.abspath(__file__))) + basescriptPath = os.path.split(scriptPath)[0] scriptPath_frozen = os.path.dirname(os.path.abspath(sys.executable)) - os.environ["PATH"] = scriptPath + os.pathsep + scriptPath_frozen + os.pathsep + os.environ["PATH"] + + + os.environ["PATH"] = scriptPath + os.pathsep + parentScriptPath + os.pathsep + scriptPath_frozen + os.pathsep + os.environ["PATH"] print(scriptPath) print(scriptPath_frozen)