filesystem support still lacking

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-08-05 17:27:53 -07:00
parent 128deaa7c0
commit 1a3a26bf3a
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ project(STA VERSION 2.6.0
) )
option(CUDD_DIR "CUDD BDD package directory") option(CUDD_DIR "CUDD BDD package directory")
option(USE_TCL_READLINE "Use TCL readliine package" ON) option(USE_TCL_READLINE "Use TCL readline package" ON)
option(USE_SANITIZE "Compile with santize address enabled") option(USE_SANITIZE "Compile with santize address enabled")
# Turn on to debug compiler args. # Turn on to debug compiler args.

View File

@ -40,6 +40,7 @@ using sta::evalTclInit;
using sta::sourceTclFile; using sta::sourceTclFile;
using sta::parseThreadsArg; using sta::parseThreadsArg;
using sta::tcl_inits; using sta::tcl_inits;
using sta::is_regular_file;
// Swig uses C linkage for init functions. // Swig uses C linkage for init functions.
extern "C" { extern "C" {
@ -133,7 +134,7 @@ staTclAppInit(int argc,
string init_path = home; string init_path = home;
init_path += "/"; init_path += "/";
init_path += init_filename; init_path += init_filename;
if (std::filesystem::is_regular_file(init_path.c_str())) if (is_regular_file(init_path.c_str()))
sourceTclFile(init_path.c_str(), true, true, interp); sourceTclFile(init_path.c_str(), true, true, interp);
} }
} }