fix tech file load error with qflow

This commit is contained in:
susinxy
2022-01-01 13:18:09 -05:00
committed by Tim Edwards
parent 72227b4995
commit 620217b860
+6 -1
View File
@@ -476,8 +476,13 @@ TechLoad(filename, initmask)
/* If a non-standard extension was used, then honor it */
if ((dptr != NULL) && (*dptr != '\0'))
{
tf = PaOpen(filename, "r", (char *)NULL, ".", SysLibPath, &realname);
else
/* If the honored file in not there, try the filename with the suffix */
if (tf == (FILE *) NULL)
tf = PaOpen(filename, "r", suffix, ".", SysLibPath, &realname);
}
else
tf = PaOpen(filename, "r", suffix, ".", SysLibPath, &realname);
if (tf == (FILE *) NULL)