mbed official / mbed-sdk-tools
Revision:
36:96847d42f010
Parent:
31:8ea194f6145b
Child:
40:7d3fa6b99b2b
diff -r da9c89f8be7d -r 96847d42f010 export/cmsis/__init__.py
--- a/export/cmsis/__init__.py	Wed Feb 15 13:53:18 2017 -0600
+++ b/export/cmsis/__init__.py	Thu Jun 22 11:12:28 2017 -0500
@@ -121,7 +121,7 @@
             new_srcs = []
             for f in list(files):
                 spl = f.name.split(sep)
-                if len(spl)==2:
+                if len(spl) <= 2:
                     file_element = Element('file',
                                            attrib={
                                                'category':f.type,
@@ -148,8 +148,4 @@
             'device': DeviceCMSIS(self.target),
             'date': ''
         }
-        # TODO: find how to keep prettyxml from adding xml version to this blob
-        #dom = parseString(ctx['project_files'])
-        #ctx['project_files'] = dom.toprettyxml(indent="\t")
-
         self.gen_file('cmsis/cpdsc.tmpl', ctx, 'project.cpdsc')