24 #ifndef PXR_BASE_TF_PY_INTERPRETER_H
25 #define PXR_BASE_TF_PY_INTERPRETER_H
32 #include "pxr/base/tf/api.h"
33 #include <boost/python/handle.hpp>
34 #include <boost/python/object.hpp>
37 PXR_NAMESPACE_OPEN_SCOPE
65 extern boost::python::handle<>
67 boost::python::object
const &globals = boost::python::object(),
68 boost::python::object
const &locals = boost::python::object()
81 extern boost::python::handle<>
83 boost::python::object
const &globals = boost::python::object(),
84 boost::python::object
const &locals = boost::python::object()
94 PXR_NAMESPACE_CLOSE_SCOPE
96 #endif // PXR_BASE_TF_PY_INTERPRETER_H
TF_API boost::python::handle TfPyRunString(const std::string &cmd, int start, boost::python::object const &globals=boost::python::object(), boost::python::object const &locals=boost::python::object())
Runs the given string using PyRun_String().
TF_API void TfPyInitialize()
Starts up the python runtime.
TF_API std::string TfPyGetModulePath(const std::string &moduleName)
Returns the disk path to the given module as an NSString.
TF_API int TfPyRunSimpleString(const std::string &cmd)
Runs the given string using PyRun_SimpleString().
TF_API boost::python::handle TfPyRunFile(const std::string &filename, int start, boost::python::object const &globals=boost::python::object(), boost::python::object const &locals=boost::python::object())
Runs the given file using PyRun_File().