ResolveFile() handles absolute paths
Fixes: lp:1753094 * https://bugs.launchpad.net/kicad/+bug/1753094
This commit is contained in:
parent
9ce768c29a
commit
0bdae22af7
|
@ -129,6 +129,11 @@ static wxString createFilePath( const wxString& aPath, const wxString& aFileName
|
||||||
wxString ResolveFile( const wxString& aFileName, const ENV_VAR_MAP* aEnvVars,
|
wxString ResolveFile( const wxString& aFileName, const ENV_VAR_MAP* aEnvVars,
|
||||||
const PROJECT* aProject )
|
const PROJECT* aProject )
|
||||||
{
|
{
|
||||||
|
wxFileName full( aFileName );
|
||||||
|
|
||||||
|
if( full.IsAbsolute() )
|
||||||
|
return full.GetFullPath();
|
||||||
|
|
||||||
if( aProject )
|
if( aProject )
|
||||||
{
|
{
|
||||||
wxFileName fn( createFilePath( aProject->GetProjectPath(), aFileName ) );
|
wxFileName fn( createFilePath( aProject->GetProjectPath(), aFileName ) );
|
||||||
|
|
Loading…
Reference in New Issue