find_class¶
-
utils.
find_class
(class_name, class_folder, inherited_class, excluded_files=None)[source]¶ Finds and imports a class from a given folder. Does not look in subfolders
Parameters: - class_name (string) – The name of the class to be used
- class_folder (basestring) – The path where the class is likely to be found
- inherited_class (class) – The class that the searched for class inherits from
- excluded_files (list, optional) – A list of modules to be excluded from the search. Can be described using portions of file names.
Returns: sought_class – The uninstansiated class sought
Return type: inherited_class