From e98f1c25cc83586a59c37c1dd8cefff724a8fe1d Mon Sep 17 00:00:00 2001 From: Nico264 Date: Wed, 9 Aug 2017 02:52:11 +0200 Subject: [PATCH] Now with a overly simple GUI --- download_months.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/download_months.py b/download_months.py index 5c6faa3..287e0c4 100644 --- a/download_months.py +++ b/download_months.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- import argparse +import tkinter.filedialog import beautifulscraper as bs import zipfile @@ -9,11 +10,11 @@ parser = argparse.ArgumentParser(description='Download latest month tracks') -parser.add_argument('rvgl_path', type=str, help='Path where Re-Volt/RVGL is located.') +parser.add_argument('--path', type=str, help='Path where Re-Volt/RVGL is located.') args = parser.parse_args() -rvgl_dir = args.rvgl_path +rvgl_dir = args.path if args.path else tkinter.filedialog.askdirectory() os.chdir(rvgl_dir)