Make search path for spinit relative to executable.

This commit is contained in:
Holger Vogt 2017-10-08 14:59:28 +02:00
parent e688436b4d
commit 97e4e027f2
1 changed files with 2 additions and 23 deletions

View File

@ -437,31 +437,10 @@
/* Do not trigger unwanted traps by default */
/* #undef NEWTRUNC */
#ifdef NGDEBUG
#ifdef CONFIG64
/* Define the directory for executables */
#define NGSPICEBINDIR "C:/Spice64d/bin"
#define NGSPICEBINDIR "../bin"
/* Define the directory for architecture independent data files */
#define NGSPICEDATADIR "C:/Spice64d/share/ngspice"
#else
/* Define the directory for executables */
#define NGSPICEBINDIR "C:/Spiced/bin"
/* Define the directory for architecture independent data files */
#define NGSPICEDATADIR "C:/Spiced/share/ngspice"
#endif
#else
#ifdef CONFIG64
/* Define the directory for executables */
#define NGSPICEBINDIR "C:/Spice64/bin"
/* Define the directory for architecture independent data files */
#define NGSPICEDATADIR "C:/Spice64/share/ngspice"
#else
/* Define the directory for executables */
#define NGSPICEBINDIR "C:/Spice/bin"
/* Define the directory for architecture independent data files */
#define NGSPICEDATADIR "C:/Spice/share/ngspice"
#endif
#endif
#define NGSPICEDATADIR "../share/ngspice"
/* Define if we want NOBYPASS */
/* #undef NOBYPASS */