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;
|
return strResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue