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