CLI: schematic path needs to be made absolute along with project path
This commit is contained in:
parent
b1a044e22a
commit
0dea03654b
|
@ -126,9 +126,12 @@ SCHEMATIC* EESCHEMA_HELPERS::LoadSchematic( wxString& aFileName, SCH_IO_MGR::SCH
|
||||||
|
|
||||||
SCHEMATIC* schematic = new SCHEMATIC( project );
|
SCHEMATIC* schematic = new SCHEMATIC( project );
|
||||||
|
|
||||||
|
wxFileName schFile = aFileName;
|
||||||
|
schFile.MakeAbsolute();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
schematic->SetRoot( pi->LoadSchematicFile( aFileName, schematic ) );
|
schematic->SetRoot( pi->LoadSchematicFile( schFile.GetFullPath(), schematic ) );
|
||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue