Skip to content
Snippets Groups Projects
Commit 9d2ca6a1 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't use HOME on Windows (try APPDATA instead)

parent 3e7bbabf
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,13 @@ CTX::CTX() ...@@ -23,8 +23,13 @@ CTX::CTX()
const char *tmp; const char *tmp;
if((tmp = GetEnvironmentVar("GMSH_HOME"))) if((tmp = GetEnvironmentVar("GMSH_HOME")))
homeDir = tmp; homeDir = tmp;
#if defined(WIN32)
else if((tmp = GetEnvironmentVar("APPDATA")))
homeDir = tmp;
#else
else if((tmp = GetEnvironmentVar("HOME"))) else if((tmp = GetEnvironmentVar("HOME")))
homeDir = tmp; homeDir = tmp;
#endif
else if((tmp = GetEnvironmentVar("TMP"))) else if((tmp = GetEnvironmentVar("TMP")))
homeDir = tmp; homeDir = tmp;
else if((tmp = GetEnvironmentVar("TEMP"))) else if((tmp = GetEnvironmentVar("TEMP")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment