def changelog(self): changelog_path = os.path.join(settings.PLUGIN_PATH, 'changelog.txt') if os.path.isfile(changelog_path): f = open(changelog_path, "r") changelog_text = f.read() f.close() info.showChangelog(self.session, _('ArchivCZSK Changelog'), changelog_text)
def changelog(self): clog = u'' changelog_path = os.path.join(settings.PLUGIN_PATH, 'changelog.txt') if os.path.isfile(changelog_path): with open(changelog_path, 'r') as f: text = f.read() try: clog = text except Exception: log.logError('ArchivCZSK changelog cannot be decoded') pass info.showChangelog(self.session, "ArchivCZSK", clog)
def changelog(self): info.showChangelog(self.session, self.addon.name, self.addon.changelog)
def openChangelog(self): if not self.working: import info info.showChangelog(self.session, self.addon.name, self.addon.changelog)