From b51af6422e6b1df43b3d0f722f40089879440081 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Wed, 8 Nov 2023 03:46:36 +0100 Subject: [PATCH] call simuldir if doing netlist from commandline (xschem -x -r -n -s -q ... ) --- src/xinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xinit.c b/src/xinit.c index b9bf6fdf..593c400c 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -2760,6 +2760,7 @@ int Tcl_AppInit(Tcl_Interp *inter) remove_symbols(); /* if cli_opt_do_netlist=1 call load_schematic with 'reset_undo=0' avoiding call to tcl is_xschem_file that could change xctx->netlist_type to symbol */ + if(cli_opt_do_netlist) tcleval("simuldir"); load_schematic(1, f, !cli_opt_do_netlist, 1); tclvareval("update_recent_file {", f, "}", NULL); } else /* if(!cli_opt_tcl_script[0]) */ @@ -2774,6 +2775,7 @@ int Tcl_AppInit(Tcl_Interp *inter) my_strncpy(fname, abs_sym_path(tmp, ""), S(fname)); /* if cli_opt_do_netlist=1 call load_schematic with 'reset_undo=0' avoiding call to tcl is_xschem_file that could change xctx->netlist_type to symbol */ + if(cli_opt_do_netlist) tcleval("simuldir"); load_schematic(1, fname, !cli_opt_do_netlist, 1); } /* Necessary to tell xschem the initial area to display */