Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Nov 14, 2024
1 parent a574e31 commit 4e18953
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_binding/crene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl TryToPyAny for Location {
static LOCATION_CLS: GILOnceCell<PyObject> = GILOnceCell::new();
LOCATION_CLS
.get_or_try_init(py, || {
py.import_bound("rene")?
py.import_bound("rene.enums")?
.getattr(intern!(py, "Location"))
.map(|value| IntoPy::into_py(value, py))
})?
Expand All @@ -63,7 +63,7 @@ impl TryToPyAny for Orientation {
static ORIENTATION_CLS: GILOnceCell<PyObject> = GILOnceCell::new();
ORIENTATION_CLS
.get_or_try_init(py, || {
py.import_bound("rene")?
py.import_bound("rene.enums")?
.getattr(intern!(py, "Orientation"))
.map(|value| IntoPy::into_py(value, py))
})?
Expand Down Expand Up @@ -91,7 +91,7 @@ impl TryToPyAny for Relation {
static RELATION_CLS: GILOnceCell<PyObject> = GILOnceCell::new();
RELATION_CLS
.get_or_try_init(py, || {
py.import_bound("rene")?
py.import_bound("rene.enums")?
.getattr(intern!(py, "Relation"))
.map(|value| IntoPy::into_py(value, py))
})?
Expand Down

0 comments on commit 4e18953

Please sign in to comment.