Пример #1
0
def get():
    fenomscrapers_path = addonPath()
    fenomscrapers_version = addonVersion()
    changelogfile = joinPath(fenomscrapers_path, 'changelog.txt')
    r = open(changelogfile, 'r', encoding='utf-8', errors='ignore')
    text = r.read()
    r.close()
    heading = '[B]FenomScrapers -  v%s - ChangeLog[/B]' % fenomscrapers_version
    windows = TextViewerXML('textviewer.xml',
                            fenomscrapers_path,
                            heading=heading,
                            text=text)
    windows.run()
    del windows
Пример #2
0
def get(file):
    fenomscrapers_path = addonPath()
    fenomscrapers_version = addonVersion()
    helpFile = joinPath(fenomscrapers_path, 'lib', 'fenomscrapers', 'help',
                        file + '.txt')
    r = open(helpFile, 'r', encoding='utf-8', errors='ignore')
    text = r.read()
    r.close()
    heading = '[B]FenomScrapers -  v%s - %s[/B]' % (fenomscrapers_version,
                                                    file)
    windows = TextViewerXML('textviewer.xml',
                            fenomscrapers_path,
                            heading=heading,
                            text=text)
    windows.run()
    del windows
Пример #3
0
def view_LogFile(name):
    try:
        from fenomscrapers.windows.textviewer import TextViewerXML
        from fenomscrapers.modules.control import addonPath
        log_file = joinPath(LOGPATH, '%s.log' % name.lower())
        if not existsPath(log_file):
            from fenomscrapers.modules.control import notification
            return notification(
                message='Log File not found, likely logging is not enabled.')
        f = open(log_file, 'r', encoding='utf-8', errors='ignore')
        text = f.read()
        f.close()
        heading = '[B]%s -  LogFile[/B]' % name
        windows = TextViewerXML('textviewer.xml',
                                addonPath(),
                                heading=heading,
                                text=text)
        windows.run()
        del windows
    except:
        error()
Пример #4
0
# -*- coding: utf-8 -*-
"""
	Fenomscrapers Module
"""

from fenomscrapers.modules import control

fenomscrapers_path = control.addonPath()
fenomscrapers_version = control.addonVersion()
changelogfile = control.joinPath(fenomscrapers_path, 'changelog.txt')


def get():
    r = open(changelogfile)
    text = r.read()
    r.close()
    control.dialog.textviewer(
        '[COLOR red]Fenomscrapers[/COLOR] -  v%s - ChangeLog' %
        fenomscrapers_version, text)