]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
1.12.1
[mothur.git] / mothur.cpp
index cb8d1e8715e518ed0d307fc2d50ab46961e21f92..c413cedeef8dac80a552349a48129dfb54d50a1d 100644 (file)
@@ -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
@@ -87,9 +98,9 @@ int main(int argc, char *argv[]){
                #endif
                
                //header
-               m->mothurOut("mothur v.1.11.0");
+               m->mothurOut("mothur v.1.12.1");
                m->mothurOutEndLine();          
-               m->mothurOut("Last updated: 6/18/2010");
+               m->mothurOut("Last updated: 7/29/2010");
                m->mothurOutEndLine();  
                m->mothurOutEndLine();          
                m->mothurOut("by");