mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 18:48:04 -07:00
add SHIP_HOME (Linux) (#1210)
This commit is contained in:
parent
e12e1d67c6
commit
ed1708508a
2 changed files with 16 additions and 9 deletions
|
@ -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 ".";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue