Fix where the Python plugins are pointing to
This isn't truely correct, because it is pointing to the main KiCad path, but it is more correct than pointing to the system path. This should really be pointing to the user path (see https://gitlab.com/kicad/code/kicad/-/issues/5115)
This commit is contained in:
parent
9b3ff5af47
commit
e57499fde9
|
@ -52,6 +52,7 @@
|
||||||
#include <project/project_file.h>
|
#include <project/project_file.h>
|
||||||
#include <project/net_settings.h>
|
#include <project/net_settings.h>
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
|
#include <swig/python_scripting.h>
|
||||||
#include <tool/tool_manager.h>
|
#include <tool/tool_manager.h>
|
||||||
#include <tool/tool_dispatcher.h>
|
#include <tool/tool_dispatcher.h>
|
||||||
#include <tool/action_toolbar.h>
|
#include <tool/action_toolbar.h>
|
||||||
|
@ -1249,16 +1250,16 @@ void PCB_EDIT_FRAME::PythonPluginsShowFolder()
|
||||||
wxString msg;
|
wxString msg;
|
||||||
|
|
||||||
// Quote in case there are spaces in the path.
|
// Quote in case there are spaces in the path.
|
||||||
msg.Printf( "open \"%s\"", PYTHON_DEST );
|
msg.Printf( "open \"%s\"", PyPluginsPath() );
|
||||||
|
|
||||||
system( msg.c_str() );
|
system( msg.c_str() );
|
||||||
#else
|
#else
|
||||||
wxString pypath( PYTHON_DEST );
|
wxString pypath( PyPluginsPath() );
|
||||||
|
|
||||||
// Quote in case there are spaces in the path.
|
// Quote in case there are spaces in the path.
|
||||||
AddDelimiterString( pypath );
|
AddDelimiterString( pypath );
|
||||||
|
|
||||||
wxLaunchDefaultApplication( PYTHON_DEST );
|
wxLaunchDefaultApplication( pypath );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue