Make search path for spinit relative to executable.

This commit is contained in:
Holger Vogt 2017-10-08 14:59:28 +02:00 committed by rlar
parent 2ee1289449
commit f646ac30ca
1 changed files with 2 additions and 23 deletions

View File

@ -434,31 +434,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 */