diff --git a/common/paths.cpp b/common/paths.cpp index efe0604e41..966cf95e42 100644 --- a/common/paths.cpp +++ b/common/paths.cpp @@ -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__ )