Handle windows filepaths in SPICE include statements.
Fixes https://gitlab.com/kicad/code/kicad/issues/13591
This commit is contained in:
parent
87975b2833
commit
49f3b21f5c
|
@ -553,6 +553,10 @@ void NETLIST_EXPORTER_SPICE::writeInclude( OUTPUTFORMATTER& aFormatter, unsigned
|
|||
{
|
||||
// First, expand env vars, if any.
|
||||
wxString expandedPath = ExpandEnvVarSubstitutions( aPath, &m_schematic->Prj() );
|
||||
|
||||
// Handle windows paths
|
||||
expandedPath.Replace( wxS( "\\" ), wxS( "/" ) );
|
||||
|
||||
wxString fullPath;
|
||||
|
||||
if( aNetlistOptions & OPTION_ADJUST_INCLUDE_PATHS )
|
||||
|
|
Loading…
Reference in New Issue