11 #ifndef smtk_PythonInterpreter_h
12 #define smtk_PythonInterpreter_h
14 #include "smtk/CoreExports.h"
39 bool isInitialized()
const;
49 std::vector<std::string> pythonPath();
53 bool addPathToPluginModule(
const std::string& module,
const std::string& libdir);
57 bool addToPythonPath(
const std::string& paths, std::string separator =
",");
60 bool canFindModule(
const std::string& module)
const;
65 bool addPathToPackagedModule(
const std::string& libPackageDir,
const std::string& module);
70 bool addPathToInstalledModule(
const std::string& libInstallDir,
const std::string& module);
75 bool addPathToBuildTree(
const std::string& buildTreePath,
const std::string& module);
78 bool isEmbedded()
const {
return m_embedded; }
81 void dontWriteByteCode(
bool choice);
84 bool dontWriteByteCode();
87 bool loadPythonSourceFile(
const std::string& fileName);
88 bool loadPythonSourceFile(
const std::string& fileName,
const std::string& moduleName);
96 bool m_embedded{
false };