hutch_python.user_load.get_user_objs¶
- hutch_python.user_load.get_user_objs(load, *, ask_on_failure=True)¶
Load the user’s modules.
All objects from these modules will be imported e.g.
from module import *
and the objects will be returned.- Parameters:
load (str, list of str) – The module(s) to import.
ask_on_failure (bool, optional) – If a module fails to load, indicate what happened and ask the user if loading should continue.
- Returns:
objs – Mapping from object name to object
- Return type:
dict