module_manager.utils module¶
-
module_manager.utils.
divider
(parent)¶ Parameters: parent (QtWidgets.QWidget) – Return type: QtWidgets.QFrame
-
module_manager.utils.
filter_module_file
(file_path)¶ Parameters: file_path (str) – Returns: Module data Return type: generator
-
module_manager.utils.
get_icon_path
(file_name)¶ Get an icon path based on file name. All paths in the XBMLANGPATH variable processed to see if the provided icon can be found.
Parameters: file_name (str) – Returns: Icon path Return type: str/None
-
module_manager.utils.
get_main_window
()¶ Returns: Maya main window Return type: QtWidgets.QMainWindow/None Raises: RuntimeError – When the main window cannot be obtained.
-
module_manager.utils.
get_module_file_paths
()¶ Returns: Maya module files Return type: list[str]
-
module_manager.utils.
get_module_paths
()¶ Returns: Maya module paths Return type: list[str]
-
module_manager.utils.
parse_module_line
(line)¶ Parse the line of a module, the line needs to start with either a + or a - if this is not the case it means it is additional information that belongs to the module which is defined in the lines above this one. If that is the case None is returned.
Parameters: line (str) – Returns: Module data Return type: dict/None
-
module_manager.utils.
read_module_file
(file_path)¶ Parameters: file_path (str) – Returns: Module content Return type: list
-
module_manager.utils.
update_module_file
(file_path, state, data)¶ Update state of module, the module file gets read and the each line will be checked if it matches up with the data provided. If it does, that is the line that needs its state updated.
Parameters: - file_path (str) –
- state (bool) –
- data (dict) –