Look for libraries in the project path

This commit is contained in:
Maciej Suminski 2016-08-11 14:42:19 +02:00
parent 0cb1e80e00
commit 6bfdfd5226
1 changed files with 9 additions and 1 deletions

View File

@ -619,9 +619,17 @@ void DIALOG_SPICE_MODEL::updateFromFile( wxComboBox* aComboBox,
{
wxString curValue = aComboBox->GetValue();
const wxString keyword( aKeyword.Lower() );
wxFileName filePath( aFilePath );
if( !filePath.Exists() )
{
// Look for the file in the project path
filePath.SetPath( Prj().GetProjectPath() );
}
wxTextFile file;
if( !file.Open( aFilePath ) )
if( !file.Open( filePath.GetFullPath() ) )
return;
aComboBox->Clear();