Download DeepThinkVLA/src/tools/clean_pycache.py from zhunzhang/slai: direct link, hf CLI and curl.
- Browser
- Download file 485 Bytes
-
https://huggingface.co/zhunzhang/slai/resolve/main/DeepThinkVLA/src/tools/clean_pycache.py
- Command line
-
hf download hf://zhunzhang/slai/DeepThinkVLA/src/tools/clean_pycache.py
-
curl -L -o clean_pycache.py https://huggingface.co/zhunzhang/slai/resolve/main/DeepThinkVLA/src/tools/clean_pycache.py
485 Bytes
| # This file removes Python bytecode caches within the repository. | |
| # Author: Cheng Yin | |
| # Date: 2025-09 | |
| # Copyright (c) Cheng Yin. All rights reserved. | |
| # See LICENSE file in the project root for license information. | |
| import os | |
| import shutil | |
| root_dir = "./" | |
| for dirpath, dirnames, filenames in os.walk(root_dir): | |
| if "__pycache__" in dirnames: | |
| pycache_dir = os.path.join(dirpath, "__pycache__") | |
| shutil.rmtree(pycache_dir) | |
| print(f"Removed: {pycache_dir}") | |