Modified path on osx due to GetExecutablePath() pointing to the root of the .app bundle

This commit is contained in:
Simon Wells 2016-09-24 02:10:52 +12:00 committed by Wayne Stambaugh
parent 374808ac5b
commit 3a50f7367f
1 changed files with 3 additions and 0 deletions

View File

@ -471,6 +471,9 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// disable Export STEP item if kicad2step does not exist
wxString strK2S = Pgm().GetExecutablePath();
#ifdef __WXMAC__
strK2S += "Contents/MacOS/";
#endif
wxFileName appK2S( strK2S, "kicad2step" );
#ifdef _WIN32