Fixed a glaring error concerning the situation where the cti file is
not in the current directory. THe xml file is always written to the current directory. And the subsequent reading of the xml file must reflect that. The xml file was trying to be read from the directory where the cti file was located. Now, the xml file will be read from the current directory.
This commit is contained in:
parent
f466e13039
commit
cd16354fd0
1 changed files with 8 additions and 2 deletions
|
|
@ -266,16 +266,22 @@ namespace ctml {
|
|||
}
|
||||
if (ext != ".xml" && ext != ".ctml") {
|
||||
ct2ctml(inname.c_str(), debug);
|
||||
ff = inname.substr(0,idot) + ".xml";
|
||||
string ffull = inname.substr(0,idot) + ".xml";
|
||||
ff = "./" + getBaseName(ffull) + ".xml";
|
||||
#ifdef DEBUG_PATHS
|
||||
writelogf("ffull name = %s\n", ffull.c_str());
|
||||
writelogf("ff name = %s\n", ff.c_str());
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
ff = inname;
|
||||
}
|
||||
#ifdef DEBUG_PATHS
|
||||
writelog("Attempting to parse xml file " + ff + "\n");
|
||||
#endif
|
||||
#else
|
||||
if (debug > 0)
|
||||
writelog("Attempting to parse xml file " + ff + "\n");
|
||||
#endif
|
||||
ifstream fin(ff.c_str());
|
||||
if (!fin) {
|
||||
throw
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue