[MacOSX] Fixing minor issue for wxPython
This commit is contained in:
parent
eb34364d89
commit
c441c287b0
|
@ -154,11 +154,12 @@ bool EDA_APP::OnInit()
|
||||||
#else
|
#else
|
||||||
// Add this default search path:
|
// Add this default search path:
|
||||||
msg = wxT("/usr/local/kicad/bin/scripting/plugins");
|
msg = wxT("/usr/local/kicad/bin/scripting/plugins");
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
// OSX
|
// OSX
|
||||||
// System Library first
|
// System Library first
|
||||||
// User Library then
|
// User Library then
|
||||||
// (TODO) Bundle package ? where to place ? Shared Support ?
|
// (TODO) Bundle package ? where to place ? Shared Support ?
|
||||||
|
|
||||||
msg = wxT("/Library/Application Support/kicad/scripting");
|
msg = wxT("/Library/Application Support/kicad/scripting");
|
||||||
msg = wxString( wxGetenv("HOME") ) + 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(""))
|
wxSetEnv("PYTHONPATH",((wxGetenv("PYTHONPATH") != NULL ) ? (wxString(wxGetenv("PYTHONPATH")) + ":") : wxString(""))
|
||||||
+ bundledir.GetPath() +
|
+ bundledir.GetPath() +
|
||||||
"/Frameworks/wxPython/lib/python2.6/site-packages/wx-3.0-osx_cocoa" );
|
"/Frameworks/wxPython/lib/python2.6/site-packages/wx-3.0-osx_cocoa" );
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
// On linux and osx, 2 others paths are
|
// On linux and osx, 2 others paths are
|
||||||
// [HOME]/.kicad_plugins/
|
// [HOME]/.kicad_plugins/
|
||||||
|
|
Loading…
Reference in New Issue