コード例 #1
0
def check_dependencies():
    installed_plugins = os.listdir(Menus.getPlugInsPath())
    for dependency, site in _dependencies.iteritems():
        if not any(dependency in x for x in installed_plugins):
            msg = GenericDialog("Missing dependency")
            msg.addMessage(
                "Missing dependency {}, \n go to {} for installation instructions. "
                .format(dependency, site))
            msg.showDialog()
            raise RuntimeError(
                "Missing dependency {}, \n go to {} for installation instructions. "
                .format(dependency, site))