(dist_dir, dist_name)
| 160 | f.write(line) |
| 161 | |
| 162 | def zip_dist(dist_dir, dist_name): |
| 163 | import zipfile |
| 164 | |
| 165 | zip_filename = os.path.join(dist_dir) |
| 166 | zip = zipfile.ZipFile(zip_filename + '.zip', 'w') |
| 167 | pre_len = len(os.path.dirname(dist_dir)) |
| 168 | |
| 169 | for parent, dirnames, filenames in os.walk(dist_dir): |
| 170 | for filename in filenames: |
| 171 | pathfile = os.path.join(parent, filename) |
| 172 | arcname = pathfile[pre_len:].strip(os.path.sep) |
| 173 | zip.write(pathfile, arcname) |
| 174 | |
| 175 | zip.close() |
| 176 | |
| 177 | def MkDist(program, BSP_ROOT, RTT_ROOT, Env, project_name, project_path): |
| 178 | print('make distribution....') |
no test coverage detected