Add ~ processing in env vars.

Fixes https://gitlab.com/kicad/code/kicad/issues/1829
This commit is contained in:
Jeff Young 2020-05-13 23:45:04 +01:00
parent c9bf2eaa1d
commit 3a9746c657
1 changed files with 5 additions and 0 deletions

View File

@ -554,6 +554,11 @@ wxString KIwxExpandEnvVars( const wxString& str, const PROJECT* aProject )
}
}
#ifndef __WINDOWS__
if( strResult.StartsWith( "~" ) )
strResult.Replace( "~", wxGetHomeDir(), false );
#endif // __WINDOWS__
return strResult;
}