Centralizing SCRIPTING class

This commit is contained in:
Seth Hillbrand
2021-06-01 20:18:24 +00:00
parent 192fbfd5e5
commit c7d188a8d0
26 changed files with 171 additions and 538 deletions
+22 -1
View File
@@ -45,6 +45,28 @@
#include <wx/string.h>
#include <wx/arrstr.h>
class KIWAY;
class SCRIPTING
{
public:
SCRIPTING( KIWAY* aKiway );
~SCRIPTING();
/// We do not allow secondary creation of the scripting system
SCRIPTING( SCRIPTING const& ) = delete;
void operator= ( SCRIPTING const& ) = delete;
static bool IsWxAvailable();
private:
bool scriptingSetup();
PyThreadState* m_python_thread_state;
KIWAY* aKiway;
};
/**
* Set an environment variable in the current Python interpreter.
@@ -56,7 +78,6 @@ void UpdatePythonEnvVar( const wxString& aVar, const wxString& aValue );
void RedirectStdio();
wxWindow* CreatePythonShellWindow( wxWindow* parent, const wxString& aFramenameId );
bool ScriptingSetup();
bool InitPythonScripting( const char* aStockScriptingPath, const char* aUserScriptingPath );
bool IsWxPythonLoaded();