Fix Windows stock BOM plugins dir

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8147
This commit is contained in:
Jon Evans 2021-04-08 22:16:20 -04:00
parent 619a353c5e
commit 5ae54c1610
1 changed files with 3 additions and 1 deletions

View File

@ -178,6 +178,7 @@ wxString PATHS::GetStockPluginsPath()
#if defined( __WXMSW__ ) #if defined( __WXMSW__ )
fn.AssignDir( Pgm().GetExecutablePath() ); fn.AssignDir( Pgm().GetExecutablePath() );
fn.AppendDir( wxT( "scripting" ) );
#else #else
fn.AssignDir( PATHS::GetStockDataPath( false ) ); fn.AssignDir( PATHS::GetStockDataPath( false ) );
#endif #endif
@ -201,7 +202,8 @@ wxString PATHS::GetStockPlugins3DPath()
#elif defined( __WXMAC__ ) #elif defined( __WXMAC__ )
fn.Assign( wxStandardPaths::Get().GetPluginsDir(), wxEmptyString ); fn.Assign( wxStandardPaths::Get().GetPluginsDir(), wxEmptyString );
#else #else
fn.Assign( PATHS::GetStockPluginsPath() ); fn.AssignDir( Pgm().GetExecutablePath() );
fn.AppendDir( wxT( "plugins" ) );
#endif #endif
fn.AppendDir( "3d" ); fn.AppendDir( "3d" );