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); |