(rootpath, paths)
| 123 | |
| 124 | # caluclate the exclude path for project |
| 125 | def ExcludePaths(rootpath, paths): |
| 126 | ret = [] |
| 127 | |
| 128 | files = os.listdir(OSPath(rootpath)) |
| 129 | for file in files: |
| 130 | if file.startswith('.'): |
| 131 | continue |
| 132 | |
| 133 | fullname = os.path.join(OSPath(rootpath), file) |
| 134 | |
| 135 | if os.path.isdir(fullname): |
| 136 | # print(fullname) |
| 137 | if not fullname in paths: |
| 138 | ret = ret + [fullname] |
| 139 | else: |
| 140 | ret = ret + ExcludePaths(fullname, paths) |
| 141 | |
| 142 | return ret |
| 143 | |
| 144 | |
| 145 | rtt_path_prefix = '"${workspace_loc://${ProjName}//' |
no test coverage detected