From 5ae54c161097b4db9b38ce9aaab86949184fa713 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 8 Apr 2021 22:16:20 -0400 Subject: [PATCH] Fix Windows stock BOM plugins dir Fixes https://gitlab.com/kicad/code/kicad/-/issues/8147 --- common/paths.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/paths.cpp b/common/paths.cpp index 61e1069f0b..ba1dfe1524 100644 --- a/common/paths.cpp +++ b/common/paths.cpp @@ -178,6 +178,7 @@ wxString PATHS::GetStockPluginsPath() #if defined( __WXMSW__ ) fn.AssignDir( Pgm().GetExecutablePath() ); + fn.AppendDir( wxT( "scripting" ) ); #else fn.AssignDir( PATHS::GetStockDataPath( false ) ); #endif @@ -201,7 +202,8 @@ wxString PATHS::GetStockPlugins3DPath() #elif defined( __WXMAC__ ) fn.Assign( wxStandardPaths::Get().GetPluginsDir(), wxEmptyString ); #else - fn.Assign( PATHS::GetStockPluginsPath() ); + fn.AssignDir( Pgm().GetExecutablePath() ); + fn.AppendDir( wxT( "plugins" ) ); #endif fn.AppendDir( "3d" );