On macOS check the PATH defined in the shell and append all pending PATHs to the current environment. This should improve binary finding. Solves issue SpartanJ/ecode#63.

Renamed MACOSX references to MACOS / macOS.
This commit is contained in:
Martín Lucas Golini
2023-09-24 01:33:15 -03:00
parent 63aa5c701f
commit a87b1b3def
22 changed files with 102 additions and 40 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
Display* currentDisplay = displayManager->getDisplayIndex( 0 );
std::string resPath = Sys::getProcessPath();
#if EE_PLATFORM == EE_PLATFORM_MACOSX
#if EE_PLATFORM == EE_PLATFORM_MACOS
if ( String::contains( resPath, "ecode.app" ) ) {
resPath = FileSystem::getCurrentWorkingDirectory();
FileSystem::dirAddSlashAtEnd( resPath );