changed check.py to .check.py

This commit is contained in:
Dave Goodwin 2004-01-04 14:40:16 +00:00
parent 4fd8d91d5b
commit 2c6d9fac8e
2 changed files with 12 additions and 12 deletions

View file

@ -1,4 +1,4 @@
/* ../config.h. Generated by configure. */ /* ../config.h. Generated automatically by configure. */
// //
// Run the 'configure' script to generate 'config.h' from this input file. // Run the 'configure' script to generate 'config.h' from this input file.
// //
@ -50,7 +50,7 @@ typedef int ftnlen; // Fortran hidden string length type
// The configure script defines this if the operatiing system is Mac // The configure script defines this if the operatiing system is Mac
// OS X, This used to add some Mac-specific directories to the default // OS X, This used to add some Mac-specific directories to the default
// data file search path. // data file search path.
#define DARWIN 1 #define DARWIN 0
//--------- Fonts for reaction path diagrams ---------------------- //--------- Fonts for reaction path diagrams ----------------------
@ -60,13 +60,13 @@ typedef int ftnlen; // Fortran hidden string length type
//--------------------- Python ------------------------------------ //--------------------- Python ------------------------------------
// used to run Python to process .cti files // used to run Python to process .cti files
#define PYTHON_EXE "/usr/bin/python" #define PYTHON_EXE "c:/python23/python"
//--------------------- Cantera ----------------------------------- //--------------------- Cantera -----------------------------------
// used to find data files // used to find data files
#define CANTERA_ROOT "/usr/local/cantera" #define CANTERA_ROOT "c:/cantera/cantera"

View file

@ -42,10 +42,10 @@ namespace ctml {
} }
static bool checkPython() { static bool checkPython() {
string path = tmpDir() + "/check.py"; string path = tmpDir() + "/.check.py";
ofstream f(path.c_str()); ofstream f(path.c_str());
if (!f) { if (!f) {
throw CanteraError("checkPython","cannot write to "+tmpDir()); throw CanteraError("checkPython","cannot open "+path+" for writing);
} }
f << "from Cantera import *\n"; f << "from Cantera import *\n";
f.close(); f.close();