delete the precompiled python cache

This commit is contained in:
Sven Czarnian
2021-08-15 09:01:39 +02:00
parent 8199b33d53
commit 04b299730a

View File

@@ -38,7 +38,7 @@ class clean(_clean):
if filepath.endswith('_pb2.py') or filepath.endswith('.pyc'):
os.remove(filepath)
for dirname in dirnames:
if 'Arrival_MANager.egg-info' == dirname or 'build' == dirname or 'dist' == dirname:
if 'Arrival_MANager.egg-info' == dirname or 'build' == dirname or 'dist' == dirname or '__pycache__' == dirname:
shutil.rmtree(os.path.join(dirpath, dirname))
_clean.run(self)