InteractEngine::InteractEngine(string path){
- globaldata = GlobalData::getInstance();
string temppath = path.substr(0, (path.find_last_of("othur")-5));
//this will happen if you set the path variable to contain mothur's exe location
if (temppath == "") { path = findMothursPath(); }
- globaldata->argv = path;
+ mout->argv = path;
}
/***********************************************************************/
//This function opens the batchfile to be used by BatchEngine::getInput.
BatchEngine::BatchEngine(string path, string batchFileName){
try {
- globaldata = GlobalData::getInstance();
openedBatch = mout->openInputFile(batchFileName, inputBatchFile);
//this will happen if you set the path variable to contain mothur's exe location
if (temppath == "") { path = findMothursPath(); }
- globaldata->argv = path;
+ mout->argv = path;
}
catch(exception& e) {
//This function opens the batchfile to be used by BatchEngine::getInput.
ScriptEngine::ScriptEngine(string path, string commandString){
try {
- globaldata = GlobalData::getInstance();
//remove quotes
listOfCommands = commandString.substr(1, (commandString.length()-1));
//this will happen if you set the path variable to contain mothur's exe location
if (temppath == "") { path = findMothursPath(); }
- globaldata->argv = path;
+ mout->argv = path;
}
catch(exception& e) {