CTclGrammerApp::SourceFunctionalScripts |
static const char* kpUserInitFile = "/SpecTclRC.tcl"; ...
void CTclGrammerApp::SourceFunctionalScripts(CTCLInterpreter& rInterp) { try { // First run the ~ script: if(getenv("HOME")) { string RCFilename(getenv("HOME")); RCFilename += kpUserInitFile; rInterp.EvalFile(RCFilename); } } catch (...) { } try { string RCFilename("."); RCFilename += kpUserInitFile; rInterp.EvalFile(RCFilename); } catch (...) { } }
Last Modified: October 02, 2001
by: fox@nscl.msu.edu
© Copyright NSCL 1999, All rights reserved