Add environment variable for configuring stock data home

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15687
This commit is contained in:
Jon Evans 2024-03-05 23:18:06 -05:00
parent 4ffbef5e42
commit 9b54537e38
1 changed files with 4 additions and 0 deletions

View File

@ -169,6 +169,10 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
path = GetExecutablePath() + wxT( ".." ); path = GetExecutablePath() + wxT( ".." );
#endif #endif
} }
else if( wxGetEnv( wxT( "KICAD_STOCK_DATA_HOME" ), &path ) && !path.IsEmpty() )
{
return path;
}
else else
{ {
#if defined( __WXMAC__ ) #if defined( __WXMAC__ )