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
Branches
Tags
No related merge requests found
......@@ -23,8 +23,13 @@ CTX::CTX()
const char *tmp;
if((tmp = GetEnvironmentVar("GMSH_HOME")))
homeDir = tmp;
#if defined(WIN32)
else if((tmp = GetEnvironmentVar("APPDATA")))
homeDir = tmp;
#else
else if((tmp = GetEnvironmentVar("HOME")))
homeDir = tmp;
#endif
else if((tmp = GetEnvironmentVar("TMP")))
homeDir = tmp;
else if((tmp = GetEnvironmentVar("TEMP")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment