提交 d5d4e2f4 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed bug when catching simultaneous creation of the same directory

上级 a163c5a3
import errno
import os
import platform
import re
......@@ -37,7 +38,7 @@ def set_compiledir(path=None):
except OSError, e:
# Maybe another parallel execution of theano was trying to create
# the same directory at the same time.
if e.errno != EEXIST:
if e.errno != errno.EEXIST:
raise
# PROBLEM: sometimes the first approach based on os.system('touch')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论