filesystem support still lacking
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
128deaa7c0
commit
1a3a26bf3a
|
|
@ -29,7 +29,7 @@ project(STA VERSION 2.6.0
|
|||
)
|
||||
|
||||
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")
|
||||
|
||||
# Turn on to debug compiler args.
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ using sta::evalTclInit;
|
|||
using sta::sourceTclFile;
|
||||
using sta::parseThreadsArg;
|
||||
using sta::tcl_inits;
|
||||
using sta::is_regular_file;
|
||||
|
||||
// Swig uses C linkage for init functions.
|
||||
extern "C" {
|
||||
|
|
@ -133,7 +134,7 @@ staTclAppInit(int argc,
|
|||
string init_path = home;
|
||||
init_path += "/";
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue