Download third_party/ktx-src/interface/python_binding/clean.py from kimjunhan/vkgs-sim: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/ktx-src/interface/python_binding/clean.py
- Command line
-
hf download hf://kimjunhan/vkgs-sim/third_party/ktx-src/interface/python_binding/clean.py
-
curl -L -o clean.py https://huggingface.co/kimjunhan/vkgs-sim/resolve/main/third_party/ktx-src/interface/python_binding/clean.py
572 Bytes
| # Copyright (c) 2023, Shukant Pal and Contributors | |
| # SPDX-License-Identifier: Apache-2.0 | |
| import os | |
| for root, directories, files in os.walk('pyktx'): | |
| for file in files: | |
| if (file.endswith('.o') or | |
| file.endswith('.obj') or | |
| file.endswith('.lib') or | |
| file.endswith('.so') or | |
| file.endswith('.dylib') or | |
| file.endswith('.dll') or | |
| file.startswith('native')): | |
| path = os.path.join('pyktx', file) | |
| print(f"Deleting {path}") | |
| os.remove(path) | |