Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions legate/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
# Perform a check to see if we're running inside of Legion Python
# If we're not then we should raise an error message
try:
from legion_cffi import ffi, lib as legion
from legion_cffi import lib as _legion

# Now confirm that we are actually inside of a task
if legion.legion_runtime_has_context():
if _legion.legion_runtime_has_context():
using_legion_python = True
else:
using_legion_python = False
Expand Down Expand Up @@ -115,6 +115,10 @@
ReductionOp,
)

# NOTE: This needs to come after the imports from legate.core.legion, as we
# are overriding that module's name.
from legion_cffi import ffi, lib as legion

# Import the PyArrow type system
from pyarrow import (
DataType,
Expand Down