kicad2ems.fdtd.openems.venv

An openEMS installed in another Python environment (the GUI's Solvers and
hardware window, or setup.sh): the site setting openems_venv (sitecfg: a venv
folder, or its python) puts that environment's site-packages at the end of
sys.path, so CSXCAD and openEMS come from there and everything else from
kicad2ems's own environment. Their compiled modules load only in the same Python
version (3.13's do not in 3.14). A Windows environment (Scripts\python.exe,
Lib\site-packages) names its version in pyvenv.cfg, or its python3XX.dll.

On Windows the openEMS and CSXCAD DLLs come from a folder named by the
openems_dir setting (the unpacked openEMS release; its bin folder too where it
has one) or OPENEMS_INSTALL_PATH / CSXCAD_INSTALL_PATH: dll_dirs() adds them to
the DLL search (os.add_dll_directory), which is what LD_LIBRARY_PATH is on
Linux.

    venv.activate() -> None, or why the setting could not be used (a note for
                       the check)
    venv.dll_dirs() -> [folders added to Windows' DLL search]
kicad2ems.fdtd.openems.venv.activate(path=None)[source]
The openems_venv setting (or path) onto sys.path, once; None when used
(or none set), else the reason.
kicad2ems.fdtd.openems.venv.dll_dirs(dirs=None)[source]
Windows: openEMS's DLL folders into the DLL search, once (the openems_dir
setting, OPENEMS_INSTALL_PATH, CSXCAD_INSTALL_PATH; each with its bin folder
where it has one). Returns the folders added; [] elsewhere.
kicad2ems.fdtd.openems.venv.site_dirs(path)[source]
The site-packages folders of a venv (its folder, or its python): [(python
version 'X.Y', folder)].
kicad2ems.fdtd.openems.venv.windows_version(folder)[source]
The 'X.Y' of a Windows Python environment: pyvenv.cfg's version (a venv),
else its python3XX.dll (an installed Python); None where neither tells.