Exemplo n.º 1
0
def fix_settings(settings, version_str):
    """Fix settings, based on the version used top save the newly loaded
    settings."""
    old = Version(version_str)
    if old < Version("2.9.10"):
        if settings.get("fullscreen_mode"):
            print("[SETTINGS] Reverting fullscreen_mode to default")
            settings.set("fullscreen_mode", "")
Exemplo n.º 2
0
 def __init__(self, path, name, version="0.0.0"):
     self.path = path
     self.name = name
     self.version = version
     self._provides = {}
     # outdated being None implies that it is unknown
     self.outdated = None
     known_version = known_plugin_versions.get(self.name, None)
     if known_version:
         try:
             self.outdated = Version(self.version) < Version(known_version)
         except ValueError:
             pass