kicad2ems.core.sitecfg

Where this install's external programs are: the user's site.toml (the GUI's
Solvers and hardware window writes it:
~/.config/kicad2ems/site.toml, %APPDATA%\kicad2ems\site.toml on Windows), then
kicad2ems-site.toml in the environment (sys.prefix: the venv, or the user's site
for a --user install), as the installer (install.py) recorded them. A setting
given on the command line or in a config still comes first.

    qucsator = "/usr/bin/qucsator_rf"   # the line model's circuit solver
    openems_venv = "/opt/openems/venv"  # a venv with openEMS (kicad2ems-fdtd:
                                        # openems/venv.py)
    openems_dir = "C:/openEMS"          # Windows: the folder of openEMS's DLLs
                                        # (kicad2ems-fdtd)
    elmer = "/usr/local/bin"            # kicad2ems-fem: the folder of
                                        # ElmerSolver and ElmerGrid
    palace = "~/opt/palace/bin/palace"  # kicad2ems-fem: Palace's launcher (or
                                        # palace_rootfs: an image)

    sitecfg.get('qucsator') -> the path, or None
    sitecfg.set_user('qucsator', path)  # into the user's file (None / '':
                                        # removed)
kicad2ems.core.sitecfg.get(key)[source]
A site setting (openems_venv, qucsator, ...), from the first of paths()
that sets it, or None. Read once.
kicad2ems.core.sitecfg.paths()[source]
The site files read, the first that sets a key wins: the user's (what the
GUI set), then the environment's (what the installer recorded).
kicad2ems.core.sitecfg.set_user(key, value)[source]
A setting into the user's file (value None or '': the key removed), the
others kept.
kicad2ems.core.sitecfg.user_file()[source]
The user's site settings file: $XDG_CONFIG_HOME/kicad2ems/site.toml, else
%APPDATA%\kicad2ems\site.toml on Windows and ~/.config/kicad2ems/site.toml
elsewhere.