add SHIP_HOME (Linux) (#1210)

This commit is contained in:
th-2021
2022-08-23 22:29:28 +02:00
committed by GitHub
parent e12e1d67c6
commit ed1708508a
2 changed files with 16 additions and 9 deletions

View File

@@ -316,6 +316,12 @@ namespace Ship {
return fpath;
#endif
#ifdef __linux__
char* fpath = std::getenv("SHIP_HOME");
if (fpath != NULL)
return std::string(fpath);
#endif
return ".";
}