From c441c287b0a80f68a53b0b1096f5833fc605beda Mon Sep 17 00:00:00 2001 From: Marco Serantoni Date: Fri, 7 Feb 2014 20:19:53 +0100 Subject: [PATCH] =?UTF-8?q?[MacOSX]=C2=A0Fixing=20minor=20issue=20for=20wx?= =?UTF-8?q?Python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pcbnew/pcbnew.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index b111a9ff49..2d695c8f44 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -154,11 +154,12 @@ bool EDA_APP::OnInit() #else // Add this default search path: msg = wxT("/usr/local/kicad/bin/scripting/plugins"); + +#ifdef __WXMAC__ // OSX // System Library first // User Library then // (TODO) Bundle package ? where to place ? Shared Support ? - msg = wxT("/Library/Application Support/kicad/scripting"); msg = wxString( wxGetenv("HOME") ) + wxT("/Library/Application Support/kicad/scripting"); @@ -170,6 +171,7 @@ bool EDA_APP::OnInit() wxSetEnv("PYTHONPATH",((wxGetenv("PYTHONPATH") != NULL ) ? (wxString(wxGetenv("PYTHONPATH")) + ":") : wxString("")) + bundledir.GetPath() + "/Frameworks/wxPython/lib/python2.6/site-packages/wx-3.0-osx_cocoa" ); +#endif #endif // On linux and osx, 2 others paths are // [HOME]/.kicad_plugins/