>>> for dirpath, subdirs, files in os.walk("."): ... for f in files: ... if "pyc" in f: ... print(os.path.join(dirpath, f)) ... .\scraping\api\__pycache__\api_endpoints.cpython-37.pyc .\scraping\api\__pycache__\__init__.cpython-37.pyc .\scraping\config\__pycache__\config.cpython-37.pyc .\scraping\services\spiders\__pycache__\__init__.cpython-35.pyc .\scraping\services\spiders\__pycache__\__init__.cpython-37.pyc .\scraping\services\__pycache__\crawl_service.cpython-37.pyc .\scraping\services\__pycache__\middlewares.cpython-35.pyc .\scraping\services\__pycache__\middlewares.cpython-37.pyc .\scraping\services\__pycache__\pipelines.cpython-37.pyc .\scraping\services\__pycache__\settings.cpython-35.pyc .\scraping\services\__pycache__\settings.cpython-37.pyc .\scraping\services\__pycache__\__init__.cpython-35.pyc .\scraping\services\__pycache__\__init__.cpython-37.pyc .\scraping\test\__pycache__\conftest.cpython-37-pytest-5.2.1.pyc .\scraping\test\__pycache__\test_api.cpython-37-pytest-5.2.1.pyc .\scraping\test\__pycache__\test_config.cpython-37-pytest-5.2.1.pyc .\scraping\test\__pycache__\test_swagger.cpython-37-pytest-5.2.1.pyc .\swagger\api\__pycache__\api_endpoints.cpython-37.pyc .\swagger\api\__pycache__\api_endpoints.cpython-38.pyc .\swagger\api\__pycache__\__init__.cpython-37.pyc .\swagger\api\__pycache__\__init__.cpython-38.pyc .\swagger\config\__pycache__\config.cpython-37.pyc .\swagger\config\__pycache__\config.cpython-38.pyc .\swagger\config\__pycache__\__init__.cpython-37.pyc .\swagger\config\__pycache__\__init__.cpython-38.pyc .\swagger\services\spiders\__pycache__\__init__.cpython-35.pyc .\swagger\services\spiders\__pycache__\__init__.cpython-37.pyc .\swagger\services\spiders\__pycache__\__init__.cpython-38.pyc .\swagger\services\__pycache__\crawl_service.cpython-37.pyc .\swagger\services\__pycache__\middlewares.cpython-35.pyc .\swagger\services\__pycache__\middlewares.cpython-37.pyc .\swagger\services\__pycache__\pipelines.cpython-37.pyc .\swagger\services\__pycache__\settings.cpython-35.pyc .\swagger\services\__pycache__\settings.cpython-37.pyc .\swagger\services\__pycache__\__init__.cpython-35.pyc .\swagger\services\__pycache__\__init__.cpython-37.pyc .\swagger\services\__pycache__\__init__.cpython-38.pyc .\swagger\test\__pycache__\conftest.cpython-37-pytest-5.2.1.pyc .\swagger\test\__pycache__\test_api.cpython-37-pytest-5.2.1.pyc .\swagger\test\__pycache__\test_config.cpython-37-pytest-5.2.1.pyc .\swagger\test\__pycache__\test_swagger.cpython-37-pytest-5.2.1.pyc >>> for dirpath, subdirs, files in os.walk("."): ... for f in files: ... if "pyc" in f: ... os.remove(os.path.join(dirpath, f)) ... >>> for dirpath, subdirs, files in os.walk("."): ... for f in files: ... if "pyc" in f: ... print(os.path.join(dirpath, f)) ... >>>
Pages
- Index of Lessons in Technology
- Index of Book Summaries
- Index of Book Lists And Downloads
- Index For Job Interviews Preparation
- Index of "Algorithms: Design and Analysis"
- Python Course (Index)
- Data Analytics Course (Index)
- Index of Machine Learning
- Postings Index
- Index of BITS WILP Exam Papers and Content
- Lessons in Investing
- Index of Math Lessons
- Downloads
- Index of Management Lessons
- Book Requests
- Index of English Lessons
- Index of Medicines
- Index of Quizzes (Educational)
Removing .pyc files from under current directory (Python CLI)
Subscribe to:
Posts (Atom)
No comments:
Post a Comment