Add ~ processing in env vars.
Fixes https://gitlab.com/kicad/code/kicad/issues/1829
(cherry picked from commit 3a9746c657
)
This commit is contained in:
parent
fde7ae4d19
commit
c6042100f9
|
@ -469,6 +469,11 @@ wxString KIwxExpandEnvVars(const wxString& str)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef __WINDOWS__
|
||||
if( strResult.StartsWith( "~" ) )
|
||||
strResult.Replace( "~", wxGetHomeDir(), false );
|
||||
#endif // __WINDOWS__
|
||||
|
||||
return strResult;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue