Commit daded0b1a9
Unsigned
Layout: unified · split
curd.py +4 −3
| @@ -6,6 +6,7 @@ | |||
| 6 | # anime_id -> episode_list.sh | 6 | # anime_id -> episode_list.sh |
| 7 | # episode_number -> episdoe_url.sh -> tmp/links | 7 | # episode_number -> episdoe_url.sh -> tmp/links |
| 8 | 8 | ||
| 9 | from pathlib import Path | ||
| 9 | import re | 10 | import re |
| 10 | import os | 11 | import os |
| 11 | import json | 12 | import json |
| @@ -167,9 +168,9 @@ def load_config() -> dict: | |||
| 167 | # return config_file.read() | 168 | # return config_file.read() |
| 168 | 169 | ||
| 169 | # START OF SCRIPT | 170 | # START OF SCRIPT |
| 170 | 171 | current_dir = Path(__file__).parent | |
| 171 | current_dir = os.path.dirname(os.path.abspath(__file__)) | 172 | # current_dir = os.path.dirname(os.path.abspath(__file__)) |
| 172 | # print(current_dir) | 173 | print(current_dir) |
| 173 | if not os.path.exists(f"{current_dir}/scripts/tmp/"): | 174 | if not os.path.exists(f"{current_dir}/scripts/tmp/"): |
| 174 | try: | 175 | try: |
| 175 | os.makedirs(os.path.dirname(f"{current_dir}/scripts/tmp/")) | 176 | os.makedirs(os.path.dirname(f"{current_dir}/scripts/tmp/")) |