qmm.common module

qmm.common.settings_are_set()[source]

Returns False if either ‘local_repository’ or ‘game_folder’ isn’t set.

qmm.common.timestamp_to_string(timestamp)[source]

Takes a UNIX timestamp and return a vernacular date.

qmm.common.tools_path()[source]

Returns the path to the 7z executable.

TODO: needs a better name

qmm.common.valid_suffixes(output_format='qfiledialog') → Union[List[str], Tuple[str, str, str], bool][source]

Properly format a list of filters for QFileDialog.

Parameters:output_format (str) – Accepts either ‘qfiledialog’ or ‘pathlib’. ‘pathlib’ returns a simple list of suffixes, whereas ‘qfiledialog’ format the output to be an acceptable filter for QFileDialog.
Returns:a list of valid suffixes.
Return type:list