mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Add ~ processing in env vars.
Fixes https://gitlab.com/kicad/code/kicad/issues/1829
This commit is contained in:
parent
c9bf2eaa1d
commit
3a9746c657
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user