File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
components/eamxx/src/share/core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ inline void PySession::initialize () {
79
79
// Note: if Py interpreter is already inited, we ASSUME someone else
80
80
// is handling the interpreter initialization/finalization
81
81
if (not Py_IsInitialized ()) {
82
- py_guard = std::make_shared<py ::scoped_interpreter>();
82
+ py_guard = std::make_shared<pybind11 ::scoped_interpreter>();
83
83
}
84
84
}
85
85
++num_customers;
@@ -103,14 +103,14 @@ inline void PySession::add_path (const std::string& path)
103
103
104
104
try {
105
105
// Import the sys module
106
- py ::module sysModule = py ::module::import (" sys" );
106
+ pybind11 ::module sysModule = pybind11 ::module::import (" sys" );
107
107
108
108
// Get the sys.path list
109
- py ::list sysPath = sysModule.attr (" path" );
109
+ pybind11 ::list sysPath = sysModule.attr (" path" );
110
110
111
111
// Append the new path to sys.path
112
112
sysPath.append (path);
113
- } catch (const py ::error_already_set& e) {
113
+ } catch (const pybind11 ::error_already_set& e) {
114
114
std::cerr << " Error: " << e.what () << std::endl;
115
115
throw std::runtime_error (" Could not modify sys.path. Aborting." );
116
116
}
You can’t perform that action at this time.
0 commit comments