diff --git a/pcbnew/python/scripting/pcb_scripting_tool.cpp b/pcbnew/python/scripting/pcb_scripting_tool.cpp index 79f4fe921d..37faf7e691 100644 --- a/pcbnew/python/scripting/pcb_scripting_tool.cpp +++ b/pcbnew/python/scripting/pcb_scripting_tool.cpp @@ -35,6 +35,7 @@ #include #include +#include using initfunc = PyObject* (*)(void); @@ -124,21 +125,8 @@ pcbnew.LoadPlugins( sys_path, user_path ) int SCRIPTING_TOOL::showPluginFolder( const TOOL_EVENT& aEvent ) { -#ifdef __WXMAC__ - wxString msg; - - // Quote in case there are spaces in the path. - msg.Printf( "open \"%s\"", SCRIPTING::PyPluginsPath( true ) ); - - system( msg.c_str() ); -#else - wxString pypath( SCRIPTING::PyPluginsPath( true ) ); - - // Quote in case there are spaces in the path. - AddDelimiterString( pypath ); - - wxLaunchDefaultApplication( pypath ); -#endif + wxString pluginpath( SCRIPTING::PyPluginsPath( true ) ); + LaunchExternal( pluginpath ); return 0; }