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__":