Permalink
Browse files

Uses fullpathname for default path

  • Loading branch information...
1 parent 462a6de commit eb421b43b79f3a658783cdb6bbbe90578915b653 @mothur-westcott mothur-westcott committed Feb 16, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/engine.cpp
View
@@ -45,7 +45,7 @@ InteractEngine::InteractEngine(string path){
#ifdef MOTHUR_FILES
#else
//set default location to search for files to mothur's executable location. This will resolve issue of double-clicking on the executable which opens mothur and sets pwd to your home directory instead of the mothur directory and leads to "unable to find file" errors.
- if (path != "") { mout->setDefaultPath(path); }
+ if (mout->mothurProgramPath != "") { mout->setDefaultPath(mout->mothurProgramPath); }
#endif
}
@@ -183,7 +183,7 @@ BatchEngine::BatchEngine(string path, string batchFileName){
#ifdef MOTHUR_FILES
#else
//set default location to search for files to mothur's executable location. This will resolve issue of double-clicking on the executable which opens mothur and sets pwd to your home directory instead of the mothur directory and leads to "unable to find file" errors.
- if (path != "") { mout->setDefaultPath(path); }
+ if (mout->mothurProgramPath != "") { mout->setDefaultPath(mout->mothurProgramPath); }
#endif

0 comments on commit eb421b4

Please sign in to comment.