X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=engine.cpp;h=23e3f6e119af2add01b95aa0d8c41f710b9b0a96;hb=36a8526766106bce1412e530e99f9c699dd59105;hp=b9360a4468a9aedd553675d9d3a2110afa6feab7;hpb=0e14094b51dd81c07c6a56b7b51533eff2332339;p=mothur.git diff --git a/engine.cpp b/engine.cpp index b9360a4..23e3f6e 100644 --- a/engine.cpp +++ b/engine.cpp @@ -16,10 +16,11 @@ using namespace std; /***********************************************************************/ -InteractEngine::InteractEngine(){ +InteractEngine::InteractEngine(string path){ globaldata = GlobalData::getInstance(); - + globaldata->argv = path; + system("clear"); // char buffer = ' '; // ifstream header("introtext.txt"); @@ -92,10 +93,11 @@ bool InteractEngine::getInput(){ /***********************************************************************/ //This function opens the batchfile to be used by BatchEngine::getInput. -BatchEngine::BatchEngine(string batchFileName){ +BatchEngine::BatchEngine(string path, string batchFileName){ try { globaldata = GlobalData::getInstance(); openedBatch = openInputFile(batchFileName, inputBatchFile); + globaldata->argv = path; system("clear");