(path, goback=0)
| 2 | import json |
| 3 | |
| 4 | def relative_path(path, goback=0): |
| 5 | levels = [".."] * (goback + -1) |
| 6 | return os.path.abspath(os.path.join(os.getcwd(), *levels, path.strip())) |
| 7 | |
| 8 | def get_cache_file_path() -> str: |
| 9 | dr = os.path.abspath(os.path.join(os.path.dirname(__file__), 'botasaurus_storage.json')) |