Skip to content

Commit 47566b7

Browse files
committed
scope
1 parent e4b476a commit 47566b7

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

calibration/src/python.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
SPT3G_PYTHON_MODULE(calibration, scope)
44
{
55
// Python bindings dependencies
6-
py::module_::import("spt3g.core");
6+
scope.import("spt3g.core");
77
}
88

core/include/core/pybindings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ PYBIND11_MODULE(_lib ## name, scope) { \
160160
void (spt3g_init_module_ ## name)([[maybe_unused]] py::module_ &scope)
161161

162162
// Declare a python module with a name that is a bare token:
163-
// SPT3G_PYTHON_MODULE(foo)
163+
// SPT3G_PYTHON_MODULE(foo, scope)
164164
// for a package whose fully qualified name will be spt3g.foo
165165
//
166166
// Use this macro once per module, as a function whose body is

dfmux/src/python.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
SPT3G_PYTHON_MODULE(dfmux, scope)
44
{
55
// Python bindings dependencies
6-
py::module_::import("spt3g.core");
6+
scope.import("spt3g.core");
77
}
88

gcp/src/python.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPT3G_PYTHON_MODULE(gcp, scope)
44
{
55
// Python bindings dependencies
6-
py::module_::import("spt3g.core");
7-
py::module_::import("spt3g.dfmux");
6+
scope.import("spt3g.core");
7+
scope.import("spt3g.dfmux");
88
}
99

maps/src/python.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
SPT3G_PYTHON_MODULE(maps, scope)
44
{
55
// Python bindings dependencies
6-
py::module_::import("spt3g.core");
7-
py::module_::import("spt3g.calibration");
6+
scope.import("spt3g.core");
7+
scope.import("spt3g.calibration");
88
}
99

0 commit comments

Comments
 (0)