-// Copyright (C) 2019-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2019-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
public:
void initializePython(int argc, char *argv[]);
+ void allowPythonCallsFromDifferentThread() const;
void registerToSalomePiDict(const std::string& processName, long pid) const;
std::vector<long> evalVL(const std::string& pyCode) const;
std::string evalS(const std::string& pyCode) const;
PyObject *getGlobals() const { return _globals; }
PyObject *getLocals() const { return _locals; }
PyObject *getPickler() const { return _pickler; }
+ static SALOME_CPythonHelper *Singleton();
+ static void KillSingleton();
+ private:
+ static SALOME_CPythonHelper *_CPYTHONHELPER_INSTANCE;
private:
PyObject *_globals = nullptr;
PyObject *_locals = nullptr;