Commit 3719385b authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'add_skip_test' into 'master'

Handling the --help command in download_and_untar script

Closes #12

See merge request !20
parents 7f85f152 cd446da6
Pipeline #19399 passed with stages
in 17 minutes and 53 seconds
......@@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <>.
def main():
import pkg_resources
......@@ -25,9 +27,14 @@ def main():
import urllib.request as urllib
import tarfile
import argparse
parser = argparse.ArgumentParser(description='Download and extract the Voxforge database.')
parser.add_argument("--address", default="VOXFORGE_DATABASE", help="Where downloaded archives will be placed. Default is 'VOXFORGE_DATABASE' folder.")
args = parser.parse_args()
directory = sys.argv[1] if len(sys.argv) > 1 else "VOXFORGE_DATABASE"
directory = args.address
if not os.path.exists(directory):
print ("Creating intermediate directory '%s', where downloaded archives will be placed" % directory)
......@@ -66,3 +73,4 @@ def main():
# TODO: should we leave possibly broken files here, so that it can be inspected later?
......@@ -59,7 +59,7 @@ The original data can be downloaded directly from Voxforge_, or by running ``dow
.. code-block:: sh
.. note::
Running this script requires this package to be installed.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment