Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 473439b29fcd38d288eebfefd712db03ab0de223 1 parent 44a7549
Nebelhom Nebelhom authored davehunt committed

Showing 1 changed file with 9 additions and 3 deletions. Show diff stats Hide diff stats

  1. +9 3 mozdownload/scraper.py
12 mozdownload/scraper.py
@@ -4,12 +4,10 @@
4 4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 6
7   -"""Module to handle downloads for different types of Firefox and Thunderbird builds."""
8   -
9   -
10 7 from datetime import datetime
11 8 from optparse import OptionParser, OptionGroup
12 9 import os
  10 +import pkg_resources
13 11 import re
14 12 import sys
15 13 import time
@@ -21,6 +19,14 @@
21 19 from parser import DirectoryParser
22 20 from timezones import PacificTimezone
23 21
  22 +version = pkg_resources.require("mozdownload")[0].version
  23 +
  24 +__doc__= """
  25 +Module to handle downloads for different types of ftp.mozilla.org hosted
  26 +applications.
  27 +
  28 +mozdownload version: %(version)s
  29 +""" % {'version' : version}
24 30
25 31 APPLICATIONS = ['b2g', 'firefox', 'thunderbird']
26 32

0 comments on commit 473439b

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