Revert "Temporary WA for getcwd"
This reverts commit 966b979f989e5de7dce2fd4c5f6ddcf28b327f37. Change-Id: Ic374d7c260e1fe81df9bdbe03e300f617c07e45a
This commit is contained in:
parent
113052bd63
commit
df6cd7e7d8
|
@ -32,7 +32,6 @@ const char *fSeparator = "\\";
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
const char *fSeparator = "/";
|
const char *fSeparator = "/";
|
||||||
#endif
|
#endif
|
||||||
std::string cwd;
|
|
||||||
|
|
||||||
Environment *gEnvironment;
|
Environment *gEnvironment;
|
||||||
|
|
||||||
|
@ -43,19 +42,13 @@ std::string getRunPath() {
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
res = getcwd(nullptr, 0);
|
res = getcwd(nullptr, 0);
|
||||||
#else
|
#else
|
||||||
res = cwd;
|
res = _getcwd(nullptr, 0);
|
||||||
#endif
|
#endif
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
int retVal = 0;
|
int retVal = 0;
|
||||||
std::string execPath(argv[0]);
|
|
||||||
char separator = '/';
|
|
||||||
if (execPath.find_last_of("\\") != std::string::npos)
|
|
||||||
separator = '\\';
|
|
||||||
cwd = execPath.substr(0, execPath.find_last_of(separator));
|
|
||||||
|
|
||||||
bool useDefaultListener = false;
|
bool useDefaultListener = false;
|
||||||
std::string devicePrefix("skl");
|
std::string devicePrefix("skl");
|
||||||
std::string familyNameWithType("Gen9core");
|
std::string familyNameWithType("Gen9core");
|
||||||
|
|
Loading…
Reference in New Issue