kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26402
[PATCH] Modified path on osx due to GetExecutablePath() pointing to the root of the .app bundle
---
pcbnew/pcbframe.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pcbnew/pcbframe.cpp b/pcbnew/pcbframe.cpp
index 183f929..1824bb3 100644
--- a/pcbnew/pcbframe.cpp
+++ b/pcbnew/pcbframe.cpp
@@ -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
Follow ups