示例#1
0
def get_version():
    version_str = '%s\n' % (common.get_version())
    try:
        from deluge._libtorrent import lt
        version_str += 'libtorrent: %s\n' % lt.__version__
    except ImportError:
        pass
    version_str += 'Python: %s\n' % platform.python_version()
    version_str += 'OS: %s %s\n' % (platform.system(), ' '.join(common.get_os_version()))
    return version_str
示例#2
0
def _get_version_detail():
    version_str = '%s\n' % (common.get_version())
    try:
        from deluge._libtorrent import LT_VERSION

        version_str += 'libtorrent: %s\n' % LT_VERSION
    except ImportError:
        pass
    version_str += 'Python: %s\n' % platform.python_version()
    version_str += 'OS: %s %s\n' % (platform.system(), common.get_os_version())
    return version_str
示例#3
0
def get_version():
    version_str = '%s\n' % (common.get_version())
    try:
        from deluge._libtorrent import lt
        version_str += 'libtorrent: %s\n' % lt.__version__
    except ImportError:
        pass
    version_str += 'Python: %s\n' % platform.python_version()
    version_str += 'OS: %s %s\n' % (platform.system(), ' '.join(
        common.get_os_version()))
    return version_str