improve whitespaces
This commit is contained in:
parent
c5ae381711
commit
26df852f07
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user