We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 721e383 commit 5df6ebaCopy full SHA for 5df6eba
2 files changed
pyinstaller.spec
@@ -33,6 +33,7 @@ a = Analysis(
33
runtime_hooks=[
34
'pyinstaller/pyi_rth_fontconfig.py',
35
'pyinstaller/pyi_rth_qt_xcb.py',
36
+ 'pyinstaller/pyi_rth_casadi.py',
37
],
38
excludes=['_tkinter', 'spyder'],
39
win_no_prefer_redirects=False,
pyinstaller/pyi_rth_casadi.py
@@ -0,0 +1,10 @@
1
+import os
2
+import sys
3
+
4
+# Python 3.8+ uses a restricted DLL search path on Windows. PyInstaller adds
5
+# _MEIPASS to the search path but not subdirectories. casadi's companion DLLs
6
+# live in _MEIPASS/casadi/, so register that directory explicitly.
7
+if sys.platform == 'win32':
8
+ casadi_dir = os.path.join(sys._MEIPASS, 'casadi')
9
+ if os.path.isdir(casadi_dir):
10
+ os.add_dll_directory(casadi_dir)
0 commit comments