diff --git a/picard/__init__.py b/picard/__init__.py index f487ba546..1371adf29 100644 --- a/picard/__init__.py +++ b/picard/__init__.py @@ -72,7 +72,10 @@ PICARD_VERSION_STR = version_to_string(PICARD_VERSION) PICARD_VERSION_STR_SHORT = version_to_string(PICARD_VERSION, short=True) if PICARD_BUILD_VERSION_STR: __version__ = "%s_%s" % (PICARD_VERSION_STR, PICARD_BUILD_VERSION_STR) + PICARD_FANCY_VERSION_STR = "%s (%s)" % (PICARD_VERSION_STR_SHORT, + PICARD_BUILD_VERSION_STR) else: __version__ = PICARD_VERSION_STR + PICARD_FANCY_VERSION_STR = PICARD_VERSION_STR_SHORT api_versions = ["0.15.0", "0.15.1", "0.16.0", "1.0.0", "1.1.0", "1.2.0", "1.3.0"] diff --git a/picard/tagger.py b/picard/tagger.py index 05e242d26..d4643e227 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -51,7 +51,8 @@ import picard.resources import picard.plugins from picard.i18n import setup_gettext -from picard import (PICARD_APP_NAME, PICARD_ORG_NAME, __version__, +from picard import (PICARD_APP_NAME, PICARD_ORG_NAME, + PICARD_FANCY_VERSION_STR, __version__, log, acoustid, config) from picard.album import Album, NatAlbum from picard.browser.browser import BrowserIntegration @@ -614,7 +615,7 @@ Options: def version(): - print """MusicBrainz Picard %s""" % (__version__) + print "%s %s %s" % (PICARD_ORG_NAME, PICARD_APP_NAME, PICARD_FANCY_VERSION_STR) def main(localedir=None, autoupdate=True): diff --git a/picard/ui/options/about.py b/picard/ui/options/about.py index d7bb3a8dd..af55fbe19 100644 --- a/picard/ui/options/about.py +++ b/picard/ui/options/about.py @@ -19,7 +19,7 @@ from mutagen import version_string as mutagen_version from PyQt4.QtCore import PYQT_VERSION_STR as pyqt_version -from picard import (PICARD_VERSION_STR_SHORT, PICARD_BUILD_VERSION_STR) +from picard import PICARD_FANCY_VERSION_STR from picard.const import PICARD_URLS from picard.formats import supported_formats from picard.ui.options import OptionsPage, register_options_page @@ -41,13 +41,8 @@ class AboutOptionsPage(OptionsPage): self.ui.setupUi(self) def load(self): - if PICARD_BUILD_VERSION_STR: - version = "%s (%s)" % (PICARD_VERSION_STR_SHORT, - PICARD_BUILD_VERSION_STR) - else: - version = PICARD_VERSION_STR_SHORT args = { - "version": version, + "version": PICARD_FANCY_VERSION_STR, "mutagen-version": mutagen_version, "pyqt-version": pyqt_version, "discid-version": discid_version or _("is not installed"),