Don't search hardcoded (and never valid on non-english) Windows paths
This commit is contained in:
parent
7c344e9be6
commit
bdc41f7365
|
@ -121,14 +121,15 @@ wxString FindKicadFile( const wxString& shortname )
|
||||||
return fullFileName;
|
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
|
// Path list for KiCad binary files
|
||||||
const static wxChar* possibilities[] = {
|
const static wxChar* possibilities[] = {
|
||||||
#if defined( __WINDOWS__ )
|
#if defined( __WXMAC__ )
|
||||||
wxT( "c:/kicad/bin/" ),
|
|
||||||
wxT( "d:/kicad/bin/" ),
|
|
||||||
wxT( "c:/Program Files/kicad/bin/" ),
|
|
||||||
wxT( "d:/Program Files/kicad/bin/" ),
|
|
||||||
#elif defined( __WXMAC__ )
|
|
||||||
// all internal paths are relative to main bundle kicad.app
|
// all internal paths are relative to main bundle kicad.app
|
||||||
wxT( "Contents/Applications/pcbnew.app/Contents/MacOS/" ),
|
wxT( "Contents/Applications/pcbnew.app/Contents/MacOS/" ),
|
||||||
wxT( "Contents/Applications/eeschema.app/Contents/MacOS/" ),
|
wxT( "Contents/Applications/eeschema.app/Contents/MacOS/" ),
|
||||||
|
|
Loading…
Reference in New Issue