|
@ -518,6 +518,11 @@ PCB_EDIT_FRAME::PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) : |
|
|
// disable Export STEP item if kicad2step does not exist
|
|
|
// disable Export STEP item if kicad2step does not exist
|
|
|
wxString strK2S = Pgm().GetExecutablePath(); |
|
|
wxString strK2S = Pgm().GetExecutablePath(); |
|
|
#ifdef __WXMAC__
|
|
|
#ifdef __WXMAC__
|
|
|
|
|
|
if (strK2S.find( _("pcbnew.app") ) != wxNOT_FOUND ) |
|
|
|
|
|
{ |
|
|
|
|
|
// On macOS, we have standalone applications inside the main bundle, so we handle that here:
|
|
|
|
|
|
strK2S += "../../"; |
|
|
|
|
|
} |
|
|
strK2S += "Contents/MacOS/"; |
|
|
strK2S += "Contents/MacOS/"; |
|
|
#endif
|
|
|
#endif
|
|
|
wxFileName appK2S( strK2S, "kicad2step" ); |
|
|
wxFileName appK2S( strK2S, "kicad2step" ); |
|
|