7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:41:42 +00:00

common: fix KICADn_3RD_PARTY version expansion

Adding logic to handle KICADn_3RD_PARTY expansion, preventing
backwards-compatible libraries from incorrectly report missing
files

Fixes https://gitlab.com/kicad/code/kicad/issues/17600
This commit is contained in:
Troy Denton 2024-10-19 12:53:21 -04:00 committed by Seth Hillbrand
parent f5765bac7f
commit 0ed48b43f8

View File

@ -269,6 +269,11 @@ wxString KIwxExpandEnvVars( const wxString& str, const PROJECT* aProject, std::s
if( getVersionedEnvVar( "KICAD*_FOOTPRINT_DIR", strResult ) )
expanded = true;
}
else if( strVarName.Matches( "KICAD*_3RD_PARTY" ) )
{
if( getVersionedEnvVar( "KICAD*_3RD_PARTY", strResult ) )
expanded = true;
}
else
{
// variable doesn't exist => don't change anything