Fix Windows script location

Windows has arbitrary installation locations, so reference relative to
the executable
This commit is contained in:
Seth Hillbrand 2021-01-13 13:11:26 -08:00
parent 4f4a5ae3cf
commit 605dcfbedf
1 changed files with 3 additions and 0 deletions

View File

@ -657,8 +657,11 @@ wxString PyScriptingPath( bool aUserPath )
}
else
{
//TODO(snh) break out the directory functions into KIPLATFORM
#if defined( __WXMAC__ )
path = GetOSXKicadDataDir() + wxT( "/scripting" );
#elif defined( __WXMSW__ )
path = Pgm().GetExecutablePath() + wxT( "../share/kicad/scripting" );
#else
path = KICAD_DATA + wxS( "/scripting" );
#endif