Fix a compil issue on Linux
This commit is contained in:
parent
e626136e29
commit
47f37efdec
|
@ -59,6 +59,7 @@ wxString NETLIST_EXPORTER::MakeCommandLine( const wxString& aFormatString,
|
||||||
wxString ret = aFormatString;
|
wxString ret = aFormatString;
|
||||||
wxFileName in = aNetlistFile;
|
wxFileName in = aNetlistFile;
|
||||||
wxFileName out = aFinalFile;
|
wxFileName out = aFinalFile;
|
||||||
|
wxString str_out = out.GetFullPath();
|
||||||
|
|
||||||
ret.Replace( "%P", aProjectPath, true );
|
ret.Replace( "%P", aProjectPath, true );
|
||||||
ret.Replace( "%B", out.GetName(), 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 "\\"
|
// so replace if by '/' if possible (I mean if the filename does not start by "\\"
|
||||||
// that is a filename on a Windows server)
|
// that is a filename on a Windows server)
|
||||||
|
|
||||||
wxString str_out = out.GetFullPath();
|
|
||||||
|
|
||||||
if( !str_out.StartsWith( "\\\\" ) )
|
if( !str_out.StartsWith( "\\\\" ) )
|
||||||
str_out.Replace( "\\", "/" );
|
str_out.Replace( "\\", "/" );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue