Fix KICAD_RUN_FROM_BUILD_DIR on MacOS

This commit is contained in:
Jon Evans 2019-04-28 21:59:51 -05:00
parent 3aaba79b87
commit 49e88b267a
1 changed files with 7 additions and 0 deletions

View File

@ -140,8 +140,15 @@ const wxString KIWAY::dso_search_path( FACE_T aFaceId )
if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) ) if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
{ {
#ifdef __WXMAC__
fn = wxStandardPaths::Get().GetExecutablePath();
fn.RemoveLastDir();
fn.AppendDir( wxT( "PlugIns" ) );
fn.SetName( name );
#else
fn.RemoveLastDir(); fn.RemoveLastDir();
fn.AppendDir( name + 1 ); fn.AppendDir( name + 1 );
#endif
} }
#endif #endif