]> git.treefish.org Git - stickletrack.git/blobdiff - stickletrack.cpp
...
[stickletrack.git] / stickletrack.cpp
index 7462af79d348ec4545b131b87f7bf987317de6bd..e90f030d0a320ae0731940cadf889f8942348679 100755 (executable)
 #include <ctime>
 #include <iomanip>
 
+// needed for _mkdir
+#if defined(_WIN32)
+#include <direct.h>
+#endif
+
 #include "masking.h"
 #include "stickletrack.h"
 #include "tracking.h"
@@ -48,12 +53,12 @@ void genBaseDir() {
 #if defined(_WIN32)
   Props.basedir = getenv("HOMEDRIVE");
   Props.basedir += getenv("HOMEPATH");
+  Props.basedir += "\.stickletrack";
 #else
   Props.basedir = getenv("HOME");
+  Props.basedir += "/.stickletrack";
 #endif
   
-  Props.basedir += "/.stickletrack";
-
   cout << "Using " << Props.basedir << " for data output." << endl;
 }