提交 b1f426d2 authored 作者: Jeremiah Lowin's avatar Jeremiah Lowin

Don't touch init.py if it exists

上级 05e72586
......@@ -67,7 +67,8 @@ try:
location = os.path.join(config.compiledir, 'cutils_ext')
if not os.path.exists(location):
os.mkdir(location)
file(os.path.join(location, "__init__.py"), 'w').close()
if not os.path.exists(os.path.join(location, '__init__.py')):
file(os.path.join(location, '__init__.py'), 'w').close()
try:
from cutils_ext.cutils_ext import *
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论