From 97e4e027f2e4d35753364874bcfce4d753fcdb59 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 3cc27606e..22d3e0eb2 100644 --- a/visualc/src/include/ngspice/config.h +++ b/visualc/src/include/ngspice/config.h @@ -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 */