提交 9d06e115 authored 作者: Frederic's avatar Frederic

assert that the compile directory still exist.

上级 9ce3e397
...@@ -923,6 +923,9 @@ class ModuleCache(object): ...@@ -923,6 +923,9 @@ class ModuleCache(object):
# The op have c_code, so take the lock. # The op have c_code, so take the lock.
compilelock.get_lock() compilelock.get_lock()
lock_taken = True lock_taken = True
assert os.path.exists(location), (
"The directory just created shouldn't be deleted!")
if module_hash in self.module_hash_to_key_data: if module_hash in self.module_hash_to_key_data:
_logger.debug("Duplicated module! Will re-use the " _logger.debug("Duplicated module! Will re-use the "
"previous one") "previous one")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论