Minor DREI patch (leaky multiprocessing)

This commit is contained in:
Miroslav Stampar
2019-05-06 15:39:11 +02:00
parent f8f57e1030
commit c5a2567033
5 changed files with 22 additions and 2 deletions

View File

@@ -378,7 +378,7 @@ def main():
except OSError:
pass
if not filterNone(filepath for filepath in glob.glob(os.path.join(kb.tempDir, '*')) if not any(filepath.endswith(_) for _ in ('.lock', '.exe', '_'))):
if not filterNone(filepath for filepath in glob.glob(os.path.join(kb.tempDir, '*')) if not any(filepath.endswith(_) for _ in (".lock", ".exe", ".so", '_'))): # ignore junk files
try:
shutil.rmtree(kb.tempDir, ignore_errors=True)
except OSError: