Browse Source

Fix Windows script location

Windows has arbitrary installation locations, so reference relative to
the executable
6.0.7
Seth Hillbrand 6 years ago
parent
commit
605dcfbedf
  1. 3
      pcbnew/swig/python_scripting.cpp

3
pcbnew/swig/python_scripting.cpp

@ -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

Loading…
Cancel
Save