From f646ac30ca3c252ddb442dfa07720c02a799202f Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 8 Oct 2017 14:59:28 +0200 Subject: [PATCH] Make search path for spinit relative to executable. --- visualc/src/include/ngspice/config.h | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/visualc/src/include/ngspice/config.h b/visualc/src/include/ngspice/config.h index 9fc3ae25d..e1498895e 100644 --- a/visualc/src/include/ngspice/config.h +++ b/visualc/src/include/ngspice/config.h @@ -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 */