Browse Source

Handle windows filepaths in SPICE include statements.

Fixes https://gitlab.com/kicad/code/kicad/issues/13591
7.0
Jeff Young 3 years ago
parent
commit
49f3b21f5c
  1. 4
      eeschema/netlist_exporters/netlist_exporter_spice.cpp

4
eeschema/netlist_exporters/netlist_exporter_spice.cpp

@ -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…
Cancel
Save