https://open-source-silicon.dev logo
Title
s

Stefan Schippers

04/13/2021, 10:30 AM
@User, xschem loads xschemrc files in the following order: • load system-wide xschemrc, depending on installation it could be in places like
/usr/share/xschem/xschemrc
or
/usr/local/share/xschem/xschemrc
. In default installations system xschemrc is all commented, does not set anything. • IF current directory has a
xschemrc
file load it. (project-specific xschemrc) • ELSE load user xschemrc (typically
~/.xschem/xschemrc
) As you see user xschemrc (
~/.xschem/xschemrc
) is not loaded if a project
xschemrc
is present. The idea was to allow user to override user xschemrc on a per-project base if needed. I don't know it fou prefer a different priority, like for example loading all 3 files starting from the most general one to the most specific: • load system-wide xschemrc, depending on installation it could be in places like
/usr/share/xschem/xschemrc
or
/usr/local/share/xschem/xschemrc
. In default installations system xschemrc is all commented, does not set anything. • Load user xschemrc (typically
~/.xschem/xschemrc
) • Load current directory
xschemrc
file if existing. (project-specific xschemrc) Let me know if this might be a better setup, making this change is easy, however it could potentially break existing installations (requiring some minor editing in xschemrc files, like doing a
set XSCHEM_LIBRARY_PATH {}
to clear previous unwanted definitions.