[GRASS-SVN] r38253 - grass/trunk/raster/r.terraflow

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 5 09:45:30 EDT 2009


Author: neteler
Date: 2009-07-05 09:45:30 -0400 (Sun, 05 Jul 2009)
New Revision: 38253

Modified:
   grass/trunk/raster/r.terraflow/main.cc
Log:
use TEMP var on windows

Modified: grass/trunk/raster/r.terraflow/main.cc
===================================================================
--- grass/trunk/raster/r.terraflow/main.cc	2009-07-05 13:22:09 UTC (rev 38252)
+++ grass/trunk/raster/r.terraflow/main.cc	2009-07-05 13:45:30 UTC (rev 38253)
@@ -131,7 +131,11 @@
   streamdir->key        = "stream_dir";
   streamdir->type       = TYPE_STRING;
   streamdir->required   = NO;
+#ifdef __MINGW32__
+  streamdir->answer     = G_convert_dirseps_from_host(G_store(getenv("TEMP")));
+#else
   streamdir->answer     = G_store("/var/tmp/");
+#endif
   streamdir->description=
      _("Directory to hold temporary files (they can be large)");
 



More information about the grass-commit mailing list