sinergym.utils.common.import_from_path
- sinergym.utils.common.import_from_path(dotted_or_file_path: str)
Import a class or function from a dotted module path or a file path.
- Parameters:
dotted_or_file_path (str) – Either ‘module:attr’ or ‘/path/to/file.py:attr’
- Returns:
The imported attribute (function, class, etc.)