diff --git a/eeschema/netlist_exporters/netlist_exporter.cpp b/eeschema/netlist_exporters/netlist_exporter.cpp index 3f438fe0bc..9f8ca9a6fd 100644 --- a/eeschema/netlist_exporters/netlist_exporter.cpp +++ b/eeschema/netlist_exporters/netlist_exporter.cpp @@ -59,6 +59,7 @@ wxString NETLIST_EXPORTER::MakeCommandLine( const wxString& aFormatString, wxString ret = aFormatString; wxFileName in = aNetlistFile; wxFileName out = aFinalFile; + wxString str_out = out.GetFullPath(); ret.Replace( "%P", aProjectPath, true ); ret.Replace( "%B", out.GetName(), true ); @@ -70,8 +71,6 @@ wxString NETLIST_EXPORTER::MakeCommandLine( const wxString& aFormatString, // so replace if by '/' if possible (I mean if the filename does not start by "\\" // that is a filename on a Windows server) - wxString str_out = out.GetFullPath(); - if( !str_out.StartsWith( "\\\\" ) ) str_out.Replace( "\\", "/" ); #endif