Question regarding ngspice's search paths for component models.

I search online and found the following:
https://nmg.gitlab.io/ngspice-manual/interactiveinterpreter/internallypredefinedvariables.html

The answer to my own question is:
sourcepath
A list of the directories to search when a source command is given.The default is the current directory and the standard ngspicelibrary (/usr/local/lib/ngspice, or whatever LIBPATH is #defined toin the ngspice source). The command
set sourcepath = ( e:/ D:/ . c:/spice/examples )
will overwrite the default. The search sequence now is: currentdirectory, e:/, d:/, current directory (again due to .),c:/spice/examples. 'Current directory' is depending on the OS.
 
  • Like
Reactions: grindstone