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

add (redundent) __init__ touch to get picloud to work with c|py linker

上级 47f7ee3b
......@@ -60,6 +60,11 @@ try:
# Must be at the beginning to ensure no conflict with other project
# that would use the same module name.
sys.path.insert(0, config.compiledir)
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()
try:
from cutils_ext.cutils_ext import *
except ImportError:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论