X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothur.cpp;h=a95c381658009f988e6caff879181a9412851c3d;hb=e0fbf58358a72f20352cf2a43922ab6b5bdf0cf8;hp=6e61f8796b9d2256de9773d9621174cc677c8ad2;hpb=fbaa6c7ac44f857c1ece7c8199e9e7e09b4bbe74;p=mothur.git diff --git a/mothur.cpp b/mothur.cpp index 6e61f87..a95c381 100644 --- a/mothur.cpp +++ b/mothur.cpp @@ -73,7 +73,18 @@ int main(int argc, char *argv[]){ #ifdef MOTHUR_FILES string temp = MOTHUR_FILES; + + //add / to name if needed + string lastChar = temp.substr(temp.length()-1); + #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) + if (lastChar != "/") { temp += "/"; } + #else + if (lastChar != "\\") { temp += "\\"; } + #endif + + temp = getFullPathName(temp); m->setDefaultPath(temp); + m->mothurOutJustToLog("Using default file location " + temp); m->mothurOutEndLine(); m->mothurOutEndLine(); #endif