fix #285 .spiceinit cannot be read in from home directory
reported by Craggan in bug report #285 http://sourceforge.net/p/ngspice/bugs/285/
This commit is contained in:
parent
6dc5f12914
commit
22b2349893
|
|
@ -610,7 +610,7 @@ ngSpice_Init(SendChar* printfcn, SendStat* statusfcn, ControlledExit* ngspiceexi
|
|||
struct passwd *pw;
|
||||
pw = getpwuid(getuid());
|
||||
|
||||
s = tprintf("%s%s", pw->pw_dir, INITSTR);
|
||||
s = tprintf("%s" DIR_PATHSEP "%s", pw->pw_dir, INITSTR);
|
||||
|
||||
if (access(s, 0) == 0)
|
||||
inp_source(s);
|
||||
|
|
|
|||
|
|
@ -2522,7 +2522,7 @@ Spice_Init(Tcl_Interp *interp)
|
|||
struct passwd *pw;
|
||||
pw = getpwuid(getuid());
|
||||
|
||||
s = tprintf("%s%s", pw->pw_dir, INITSTR);
|
||||
s = tprintf("%s" DIR_PATHSEP "%s", pw->pw_dir, INITSTR);
|
||||
|
||||
if (access(s, 0) == 0)
|
||||
inp_source(s);
|
||||
|
|
|
|||
Loading…
Reference in New Issue