Skip to content

Commit

Permalink
check parent path for mpv dll load
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaker committed Feb 18, 2023
1 parent e538af9 commit 600f6a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modalWindows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 600f6a9

Please sign in to comment.