Fix Windows script location
Windows has arbitrary installation locations, so reference relative to the executable
This commit is contained in:
parent
4f4a5ae3cf
commit
605dcfbedf
|
@ -657,8 +657,11 @@ wxString PyScriptingPath( bool aUserPath )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//TODO(snh) break out the directory functions into KIPLATFORM
|
||||||
#if defined( __WXMAC__ )
|
#if defined( __WXMAC__ )
|
||||||
path = GetOSXKicadDataDir() + wxT( "/scripting" );
|
path = GetOSXKicadDataDir() + wxT( "/scripting" );
|
||||||
|
#elif defined( __WXMSW__ )
|
||||||
|
path = Pgm().GetExecutablePath() + wxT( "../share/kicad/scripting" );
|
||||||
#else
|
#else
|
||||||
path = KICAD_DATA + wxS( "/scripting" );
|
path = KICAD_DATA + wxS( "/scripting" );
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue