Add a rule that the "RUN_IN_PLACE" users are not affected by the Migrating Process

This commit is contained in:
Nascher 2016-02-13 12:17:05 +01:00
parent cdd5d6484a
commit fc13a988a3
1 changed files with 4 additions and 1 deletions

View File

@ -244,6 +244,7 @@ void initializePaths(char* argv0)
// Use "./bin/../"
path_userdata = std::string(buf);
path_configdata = std::string(buf);
/*
OS X
@ -417,7 +418,8 @@ void initializePaths(char* argv0)
dstream<<"path_userdata = "<<path_userdata<<std::endl;
#if defined(__FreeBSD__) || defined(linux)
#ifndef RUN_IN_PLACE
// Migrate to the new Directories
std::string path_olddirectory = std::string(getenv("HOME")) + "/." + PROJECT_NAME;
if (fs::PathExists(path_olddirectory))
@ -461,6 +463,7 @@ void initializePaths(char* argv0)
dstream<<"The Data directory will not be migrated. " << std::endl;
}
}
#endif
#endif
}