You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've modified the code to handle MINGW environments on Windows. Here are the key changes:
In the setup_platform method:
Added checks for MSYSTEM and MINGW_PREFIX environment variables
If MINGW is detected, it sets up paths using the MINGW_PREFIX:
Sets LIBRARY_PATH to point to the MINGW ngspice DLL
Sets SPICE_LIB_DIR to the MINGW scripts directory
Sets NGSPICE_LIBRARY_PATH to the specific MINGW ngspice DLL
The code maintains the original Windows paths as a fallback when MINGW is not detected.
The _load_library method was updated to only set the default Windows SPICE_LIB_DIR if:
The environment variable isn't already set
NGSPICE_PATH exists (indicating we're using the original Windows path)
This way, when running in a MINGW environment, it will automatically detect and use the MINGW-installed ngspice, but will fall back to the original behavior in standard Windows environments. You won't need to manually set the environment variables anymore when using MINGW.
0 commit comments