File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -442,12 +442,13 @@ jobs:
442442 python_exe = sys.executable
443443 is_macos = platform.system() == 'Darwin'
444444
445- # macOS: Set DYLD_LIBRARY_PATH directly in run.m (not via env var)
446- # This avoids breaking MATLAB's launcher while still fixing OpenSSL for Python
445+ # macOS: Use DYLD_FALLBACK_LIBRARY_PATH instead of DYLD_LIBRARY_PATH
446+ # FALLBACK is checked after default locations, so MATLAB's libs load first
447+ # but conda's libs are available as fallback for symbols MATLAB doesn't have
447448 dyld_line = ''
448449 if is_macos:
449450 conda_lib_path = os.path.join(os.path.dirname(os.path.dirname(python_exe)), 'lib')
450- dyld_line = f\"setenv('DYLD_LIBRARY_PATH ', '{conda_lib_path}');\"
451+ dyld_line = f\"setenv('DYLD_FALLBACK_LIBRARY_PATH ', '{conda_lib_path}');\"
451452
452453 content = f'''pyenv(Version='{python_exe}', ExecutionMode='OutOfProcess')
453454 {dyld_line}
You can’t perform that action at this time.
0 commit comments