]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
fixed blast code path problem
[mothur.git] / engine.cpp
index b9360a4468a9aedd553675d9d3a2110afa6feab7..23e3f6e119af2add01b95aa0d8c41f710b9b0a96 100644 (file)
@@ -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");