add SHIP_HOME (Linux) (#1210)

This commit is contained in:
th-2021 2022-08-23 22:29:28 +02:00 committed by GitHub
commit ed1708508a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 ".";
}