Skip to content
Browse files

Added version number to docstring and --help output. Fixes issue #34

  • Loading branch information...
1 parent 44a7549 commit 473439b29fcd38d288eebfefd712db03ab0de223 @Nebelhom Nebelhom committed with davehunt Mar 20, 2013
Showing with 9 additions and 3 deletions.
  1. +9 −3 mozdownload/
12 mozdownload/
@@ -4,12 +4,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
-"""Module to handle downloads for different types of Firefox and Thunderbird builds."""
from datetime import datetime
from optparse import OptionParser, OptionGroup
import os
+import pkg_resources
import re
import sys
import time
@@ -21,6 +19,14 @@
from parser import DirectoryParser
from timezones import PacificTimezone
+version = pkg_resources.require("mozdownload")[0].version
+__doc__= """
+Module to handle downloads for different types of hosted
+mozdownload version: %(version)s
+""" % {'version' : version}
APPLICATIONS = ['b2g', 'firefox', 'thunderbird']

0 comments on commit 473439b

Please sign in to comment.
Something went wrong with that request. Please try again.