Skip to content

Commit

Permalink
improve whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jun 16, 2016
1 parent c5ae381 commit 26df852
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/App/Application.cpp
Expand Up @@ -1900,7 +1900,6 @@ void Application::ParseOptions(int ac, char ** av)
void Application::ExtractUserPath()
{
// std paths
char *FCUserData;
mConfig["BinPath"] = mConfig["AppHomePath"] + "bin" + PATHSEP;
mConfig["DocPath"] = mConfig["AppHomePath"] + "doc" + PATHSEP;

Expand All @@ -1910,11 +1909,14 @@ void Application::ExtractUserPath()
if (pwd == NULL)
throw Base::Exception("Getting HOME path from system failed!");
mConfig["UserHomePath"] = pwd->pw_dir;

char *path="/tmp";
if ( FCUserData=getenv("FREECAD_USER_DATA") )
path=FCUserData;
char *FCUserData;
if (FCUserData=getenv("FREECAD_USER_DATA"))
path = FCUserData;
else
path= pwd->pw_dir;
path = pwd->pw_dir;

std::string appData(path);
Base::FileInfo fi(appData.c_str());
if (!fi.exists()) {
Expand Down

0 comments on commit 26df852

Please sign in to comment.