gerbview command line support
This commit is contained in:
parent
ad55799485
commit
1e4659bb4e
|
@ -143,6 +143,7 @@ int WinEDA_GerberFrame::LoadOneGerberFile( const wxString& FullFileName,
|
||||||
|
|
||||||
GetScreen()->m_FileName = filename;
|
GetScreen()->m_FileName = filename;
|
||||||
|
|
||||||
|
if( path != wxEmptyString )
|
||||||
wxSetWorkingDirectory( path );
|
wxSetWorkingDirectory( path );
|
||||||
|
|
||||||
ChangeFileNameExt( filename, g_PenFilenameExt );
|
ChangeFileNameExt( filename, g_PenFilenameExt );
|
||||||
|
|
|
@ -70,6 +70,7 @@ bool WinEDA_App::OnInit()
|
||||||
|
|
||||||
wxString path = wxPathOnly( fileName );
|
wxString path = wxPathOnly( fileName );
|
||||||
|
|
||||||
|
if( path != wxEmptyString )
|
||||||
wxSetWorkingDirectory( path );
|
wxSetWorkingDirectory( path );
|
||||||
|
|
||||||
Read_Config();
|
Read_Config();
|
||||||
|
|
|
@ -149,7 +149,9 @@ bool WinEDA_GerberFrame::Read_GERBER_File( wxDC* DC,
|
||||||
|
|
||||||
gerber_layer->m_FileName = GERBER_FullFileName;
|
gerber_layer->m_FileName = GERBER_FullFileName;
|
||||||
|
|
||||||
wxSetWorkingDirectory( wxPathOnly( GERBER_FullFileName ) );
|
wxString path = wxPathOnly( GERBER_FullFileName );
|
||||||
|
if( path != wxEmptyString )
|
||||||
|
wxSetWorkingDirectory( path );
|
||||||
|
|
||||||
wxBusyCursor show_wait;
|
wxBusyCursor show_wait;
|
||||||
setlocale( LC_NUMERIC, "C" );
|
setlocale( LC_NUMERIC, "C" );
|
||||||
|
|
Loading…
Reference in New Issue