Don't search hardcoded (and never valid on non-english) Windows paths

This commit is contained in:
Marek Roszko 2020-11-18 19:22:00 -05:00
parent 7c344e9be6
commit bdc41f7365
1 changed files with 7 additions and 6 deletions

View File

@ -121,14 +121,15 @@ wxString FindKicadFile( const wxString& shortname )
return fullFileName;
}
#if defined( __WINDOWS__ )
// kicad can be installed highly portably on Windows, anywhere and concurrently
// either the "kicad file" is immediately adjacent to the exe or it's not a valid install
return shortname;
#endif
// Path list for KiCad binary files
const static wxChar* possibilities[] = {
#if defined( __WINDOWS__ )
wxT( "c:/kicad/bin/" ),
wxT( "d:/kicad/bin/" ),
wxT( "c:/Program Files/kicad/bin/" ),
wxT( "d:/Program Files/kicad/bin/" ),
#elif defined( __WXMAC__ )
#if defined( __WXMAC__ )
// all internal paths are relative to main bundle kicad.app
wxT( "Contents/Applications/pcbnew.app/Contents/MacOS/" ),
wxT( "Contents/Applications/eeschema.app/Contents/MacOS/" ),