ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/openbabel/patty.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/openbabel/patty.cpp (file contents):
Revision 2440 by tim, Wed Nov 16 19:42:11 2005 UTC vs.
Revision 2450 by gezelter, Thu Nov 17 20:38:45 2005 UTC

# Line 75 | Line 75 | void patty::read_rules(const string &infile)
75      ifsP= &ifs;
76      if (!ifs)
77      {
78 <        if (getenv("BABEL_DATADIR") == NULL)
78 >        if (getenv("FORCE_PARAM_PATH") == NULL)
79          {
80   #ifdef HAVE_SSTREAM
81            stringstream errorMsg;
82   #else
83            strstream errorMsg;
84   #endif
85 <          errorMsg << "The BABEL_DATADIR environment variable is not defined" << endl;
85 >          errorMsg << "The FORCE_PARAM_PATH environment variable is not defined" << endl;
86            errorMsg << "Please define it so the program can find " << infile << endl;
87            obErrorLog.ThrowError(__FUNCTION__, errorMsg.str(), obWarning);
88              //            exit(0);
89          }
90          else
91 <            strcpy(patty_dir,getenv("BABEL_DATADIR"));
91 >            strcpy(patty_dir,getenv("FORCE_PARAM_PATH"));
92          strcat(patty_dir,FILE_SEP_CHAR);
93          strcat(patty_dir,infile.c_str());
94          ifs1.open(patty_dir);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines