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