You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest ophyd-async load plan requires a directory (Path or String type), but the importlib.resources only added support to represent a traversable as a directory as of python 3.12 (see https://docs.python.org/3/library/importlib.resources.html). I had to use some old-fashioned Python to get the correct directory path instead, see #770.
Once Python<3.12 is dropped, we should use importlib.resources to get directory locations rather than using ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
Acceptance Criteria
Support for python<3.12 is dropped in mx-bluesky
The ROOT_DIR constant in definitions.py is removed and we use importlib.resources.as_file in its place
The text was updated successfully, but these errors were encountered:
The latest ophyd-async
load
plan requires a directory (Path
orString
type), but theimportlib.resources
only added support to represent a traversable as a directory as of python 3.12 (see https://docs.python.org/3/library/importlib.resources.html). I had to use some old-fashioned Python to get the correct directory path instead, see #770.Once Python<3.12 is dropped, we should use
importlib.resources
to get directory locations rather than usingROOT_DIR = os.path.dirname(os.path.abspath(__file__))
Acceptance Criteria
mx-bluesky
ROOT_DIR
constant indefinitions.py
is removed and we useimportlib.resources.as_file
in its placeThe text was updated successfully, but these errors were encountered: