提交 5e7b4cab authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

This seems to be a better check for the lock_dir.

上级 58aff123
......@@ -674,9 +674,8 @@ class ModuleCache(object):
continue
if not os.path.isdir(root):
continue
# Some sub directory we do not want the cache to mess
# with. This can cause problems with multiple process.
if os.path.split(root)[1] in ["lock_dir"]:
# Never clean/remove lock_dir
if 'lock_dir' in root:
continue
files = os.listdir(root)
if not files or 'delete.me' in files:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论