def add_command_line_sys_path_if_necessary(dummy):
    """Function that extends Blender's sys.path if necessary"""

    dependency_manager = OptionalDependencyManager.get_singleton()
    dependencies = dependency_manager.get_dependencies()
    installed = any(
        dependency.installation_status for dependency in dependencies
    )
    if installed:
        log_report(
            "INFO", "Found installed dependencies. Going to adjust sys.path."
        )
        add_command_line_sys_path()
    else:
        log_report(
            "INFO",
            "Found no installed dependencies. Not going to adjust sys.path.",
        )
Function that extends Blender's sys.path if necessary
photogrammetry_importer/preferences/dependency.py