From b2fd1c331b2bada4751c33bda84bd79aa4fa6f78 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sat, 10 May 2025 00:52:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=96=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clean_pycache.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clean_pycache.py b/clean_pycache.py index a8c6a6b..431d229 100644 --- a/clean_pycache.py +++ b/clean_pycache.py @@ -26,6 +26,8 @@ def main(): ): if os.path.isdir(file) and os.access(file, os.W_OK): shutil.rmtree(file) + elif os.path.isfile(file) and os.access(file, os.W_OK): + os.remove(file) if __name__ == "__main__":