From fc1da1dd208c34dbd7bf0bb3b46b9edede43e3c9 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 31 Oct 2023 11:23:06 -0700 Subject: refactor(brec): minimise variables --- hayai/brec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hayai/brec.py b/hayai/brec.py index 10256ce..f787e56 100644 --- a/hayai/brec.py +++ b/hayai/brec.py @@ -54,13 +54,13 @@ def bolding(text): parser = argparse.ArgumentParser() + parser.add_argument("epubfile", help="put a path to your epub file in here") -args = parser.parse_args() -file_path = args.epubfile + +file_path = parser.parse_args().epubfile file_name = os.path.basename(file_path) epub_path = os.getcwd() + "/hayai_" + file_name -unzip_path_folder = file_name + "_zip/" -unzip_path = os.getcwd() + "/" + unzip_path_folder +unzip_path = os.getcwd() + "/" + (file_name + "_zip/") try: -- cgit v1.2.3