瀏覽代碼

Ignore files not ending with '.xml' when building doc header

mhilbrunner 7 年之前
父節點
當前提交
487afde3bb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/SCsub

+ 2 - 0
editor/SCsub

@@ -39,6 +39,8 @@ def make_doc_header(target, source, env):
     docend = ""
     for s in source:
         src = s.srcnode().abspath
+        if not src.endswith(".xml"):
+            continue
         f = open_utf8(src, "r")
         content = f.read()
         buf+=content