summaryrefslogtreecommitdiff
path: root/tools/codeblocks.py
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-12-13 20:13:45 +0800
committerbernard <[email protected]>2017-12-13 20:13:45 +0800
commit3802754f0517e96db8e73f6d789957b104400215 (patch)
tree97480253c17f5b8ca3117c71e08a2734b2520205 /tools/codeblocks.py
parentd6aa42285a9cb9ee17ff70fe39c3022f2bea7160 (diff)
[Tools] Fix the walk_children issue
Diffstat (limited to 'tools/codeblocks.py')
-rw-r--r--tools/codeblocks.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/tools/codeblocks.py b/tools/codeblocks.py
index cb07956e73..7db82b49e9 100644
--- a/tools/codeblocks.py
+++ b/tools/codeblocks.py
@@ -31,17 +31,20 @@ import xml.etree.ElementTree as etree
from xml.etree.ElementTree import SubElement
from utils import _make_path_relative
from utils import xml_indent
+
+import utils
+
fs_encoding = sys.getfilesystemencoding()
def CB_AddHeadFiles(program, elem, project_path):
- building.source_ext = []
- building.source_ext = ["h"]
+ utils.source_ext = []
+ utils.source_ext = ["h"]
for item in program:
- building.walk_children(item)
- building.source_list.sort()
- # print building.source_list
+ utils.walk_children(item)
+ utils.source_list.sort()
+ # print utils.source_list
- for f in building.source_list:
+ for f in utils.source_list:
path = _make_path_relative(project_path, f)
Unit = SubElement(elem, 'Unit')
Unit.set('filename', path.decode(fs_encoding))