Add environment variable for configuring stock data home
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15687
(cherry picked from commit 9b54537e38
)
This commit is contained in:
parent
af3654d389
commit
c7b7830495
|
@ -169,6 +169,10 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
|
|||
path = GetExecutablePath() + wxT( ".." );
|
||||
#endif
|
||||
}
|
||||
else if( wxGetEnv( wxT( "KICAD_STOCK_DATA_HOME" ), &path ) && !path.IsEmpty() )
|
||||
{
|
||||
return path;
|
||||
}
|
||||
else
|
||||
{
|
||||
#if defined( __WXMAC__ )
|
||||
|
|
Loading…
Reference in New Issue