diff --git a/common/filename_resolver.cpp b/common/filename_resolver.cpp index 016838e1dd..4f84f02f3c 100644 --- a/common/filename_resolver.cpp +++ b/common/filename_resolver.cpp @@ -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();