Skip to content

Commit

Permalink
Add %APPDATA% to get a directory to store user files on Windows
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24881 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 3, 2015
1 parent 8c28716 commit c983b60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/runtime/settingsimpl.c
Expand Up @@ -196,6 +196,8 @@ char* Settings_getHomeDir(int runningTestsuite)
if (homePath == NULL) {
homePath = getpwuid(getuid())->pw_dir;
}
#else
return "%APPDATA%";
#endif
if (homePath == NULL || runningTestsuite) {
return "";
Expand Down

0 comments on commit c983b60

Please sign in to comment.