017d35cb3c
This helps for Windows packaging.
27 lines
1.1 KiB
Python
27 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
|
# Copyright (C) 2015-2016 Tobias Gruetzmacher
|
|
"""
|
|
Automated comic downloader. Dosage traverses comic websites in
|
|
order to download each strip of the comic. The intended use is for
|
|
mirroring the strips locally for ease of viewing; redistribution of the
|
|
downloaded strips may violate copyright, and is not advisable unless you
|
|
have communicated with all of the relevant copyright holders, described
|
|
your intentions, and received permission to distribute.
|
|
|
|
The primary interface is the 'dosage' commandline script.
|
|
Comic modules for each comic are located in L{dosagelib.plugins}.
|
|
"""
|
|
|
|
from pbr.version import VersionInfo
|
|
import pkg_resources
|
|
|
|
AppName = u'dosage'
|
|
version_info = VersionInfo(AppName)
|
|
try:
|
|
__version__ = version_info.version_string() # PEP 396
|
|
AppVersion = version_info.version_string_with_vcs()
|
|
except pkg_resources.DistributionNotFound:
|
|
__version__ = "2.15.0"
|
|
AppVersion = __version__ + "-unknown"
|