diff options
| author | Fuwn <[email protected]> | 2023-10-31 11:23:06 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-10-31 11:23:06 -0700 |
| commit | fc1da1dd208c34dbd7bf0bb3b46b9edede43e3c9 (patch) | |
| tree | 7b0622a5e8d1e761971b7748f6b42a5205fa433e | |
| parent | fix(brec): remove unnused (diff) | |
| download | hayai-main.tar.xz hayai-main.zip | |
| -rw-r--r-- | hayai/brec.py | 8 |
1 files 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: |