Use EnvVar resolver not full resolver when expanding 3D search paths.

Fixes https://gitlab.com/kicad/code/kicad/issues/7670
This commit is contained in:
Jeff Young 2021-09-14 14:47:35 +01:00
parent 4447843dc1
commit 38e1e780a8
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ bool FILENAME_RESOLVER::WritePathList( const wxString& aDir, const wxString& aFi
cfgFile << "\"" << tstr.size() << ":" << tstr << "\",";
if( aResolvePaths )
tstr = ResolvePath( sPL->m_Pathvar ).ToUTF8();
tstr = ExpandEnvVarSubstitutions( sPL->m_Pathvar, m_project ).ToUTF8();
else
tstr = sPL->m_Pathvar.ToUTF8();