Browse Source

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
pcb_db
Troy Denton 1 year ago
committed by Seth Hillbrand
parent
commit
0ed48b43f8
  1. 5
      common/common.cpp

5
common/common.cpp

@ -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

Loading…
Cancel
Save