Fix error in PyInstaller packaged application.

This commit is contained in:
Tobias Gruetzmacher 2016-06-05 00:34:16 +02:00
parent ed1094b680
commit 12123961a4

View file

@ -18,8 +18,8 @@ from pbr.version import VersionInfo
import pkg_resources
AppName = u'dosage'
version_info = VersionInfo(AppName)
try:
version_info = VersionInfo(AppName)
__version__ = version_info.version_string() # PEP 396
AppVersion = version_info.version_string_with_vcs()
except pkg_resources.DistributionNotFound: