(parent, name, files, project_path)
| 49 | ''' |
| 50 | |
| 51 | def IARAddGroup(parent, name, files, project_path): |
| 52 | group = SubElement(parent, 'group') |
| 53 | group_name = SubElement(group, 'name') |
| 54 | group_name.text = name |
| 55 | |
| 56 | for f in files: |
| 57 | fn = f.rfile() |
| 58 | name = fn.name |
| 59 | path = os.path.dirname(fn.abspath) |
| 60 | basename = os.path.basename(path) |
| 61 | path = _make_path_relative(project_path, path) |
| 62 | path = os.path.join(path, name) |
| 63 | |
| 64 | file = SubElement(group, 'file') |
| 65 | file_name = SubElement(file, 'name') |
| 66 | |
| 67 | if os.path.isabs(path): |
| 68 | file_name.text = path # path.decode(fs_encoding) |
| 69 | else: |
| 70 | file_name.text = '$PROJ_DIR$\\' + path # ('$PROJ_DIR$\\' + path).decode(fs_encoding) |
| 71 | |
| 72 | def IARWorkspace(target): |
| 73 | # make an workspace |
no test coverage detected