提交 090d80f9 authored 作者: Jeremiah Lowin's avatar Jeremiah Lowin

Update comment to explain __init__ touch

上级 a7b286ae
...@@ -57,8 +57,11 @@ def compile_cutils(): ...@@ -57,8 +57,11 @@ def compile_cutils():
preargs=args) preargs=args)
try: try:
# Must be at the beginning to ensure no conflict with other project # Compiledir ust be at the beginning of the path to ensure no conflict with
# that would use the same module name. # other project that would use the same module name. An __init__ file must
# also exist. Note that compile_str also creates an __init__ but if another
# cutils_ext exists somewhere on the path it will be imported without
# calling compile_str.
sys.path.insert(0, config.compiledir) sys.path.insert(0, config.compiledir)
location = os.path.join(config.compiledir, 'cutils_ext') location = os.path.join(config.compiledir, 'cutils_ext')
if not os.path.exists(location): if not os.path.exists(location):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论