improve whitespaces

This commit is contained in:
wmayer 2016-06-16 15:00:30 +02:00
parent c5ae381711
commit 26df852f07

View File

@ -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;
@ -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()) {