1 #ifndef BALL_PYTHON_PYINTERPRETER_H 2 #define BALL_PYTHON_PYINTERPRETER_H 13 #include <QtCore/QList> 14 #include <QtCore/QPair> 15 #include <QtCore/QString> 50 static void initialize();
56 static void finalize();
91 static std::pair<bool, std::string> run(
const std::string& s);
111 static bool execute(
const std::string& module,
const std::string& func,
const PyKernel::KeyValArgs& params);
118 static std::string getErrorMessage();
121 BALL_DEPRECATED static bool execute(
const QString& module,
const QString& func,
const QList<QPair<QString, QString> >& params);
132 static void startServer();
137 static void stopServer();
155 #endif // BALL_PYTHON_PYINTERPRETER_H static BALL_DEPRECATED bool isValid()
static BALL_DEPRECATED String getStartupLog()
static bool serverIsRunning()
static BALL_DEPRECATED const PathStrings & getSysPath()
static std::unique_ptr< PyServer > server_
static BALL_DEPRECATED void setSysPath(const PathStrings &path_strings)
std::vector< String > PathStrings
Used to encode the individual paths appended to sys.path for dynamic loading of modules.
std::map< std::string, std::string > KeyValArgs
static std::unique_ptr< PyKernel > kernel_
static PathStrings sys_path_
static bool isInitialized()