python version check: fix error message edge case
This commit is contained in:
parent
f4bce6079c
commit
2449f209b1
|
@ -115,11 +115,12 @@ except:
|
|||
"Python plugins will not be available." ) );
|
||||
available = false;
|
||||
}
|
||||
|
||||
version = version.Mid( idx + 10 );
|
||||
else
|
||||
{
|
||||
wxVersionInfo wxVI = wxGetLibraryVersionInfo();
|
||||
wxString wxVersion = wxString::Format( wxT( "%d.%d.%d" ),
|
||||
wxVI.GetMajor(), wxVI.GetMinor(), wxVI.GetMicro() );
|
||||
version = version.Mid( idx + 10 );
|
||||
|
||||
if( wxVersion.Cmp( version ) != 0 )
|
||||
{
|
||||
|
@ -128,6 +129,7 @@ except:
|
|||
wxLogError( wxString::Format( msg, version, wxVersion ) );
|
||||
available = false;
|
||||
}
|
||||
}
|
||||
|
||||
run = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue