| 356 | self.copy_files(tmp_C_path, _C_path) |
| 357 | |
| 358 | def copy_files(self, src_dir, dst_dir): |
| 359 | import shutil |
| 360 | |
| 361 | os.makedirs(dst_dir, exist_ok=True) |
| 362 | for root, dirs, files in os.walk(src_dir): |
| 363 | rel_path = os.path.relpath(root, src_dir) |
| 364 | dest_path = os.path.join(dst_dir, rel_path) |
| 365 | |
| 366 | os.makedirs(dest_path, exist_ok=True) |
| 367 | |
| 368 | for file in files: |
| 369 | src_file = os.path.join(root, file) |
| 370 | dest_file = os.path.join(dest_path, file) |
| 371 | shutil.copy(src_file, dest_file) |
| 372 | |
| 373 | |
| 374 | class BuildDocTask(Task): |