Handle windows filepaths in SPICE include statements.

Fixes https://gitlab.com/kicad/code/kicad/issues/13591
This commit is contained in:
Jeff Young 2023-01-19 14:54:55 +00:00
parent 87975b2833
commit 49f3b21f5c
1 changed files with 4 additions and 0 deletions

View File

@ -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 )