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.)