(folder_name)
| 31 | def copy_files(use_gpu=False): |
| 32 | |
| 33 | def copy_files_helper(folder_name): |
| 34 | src = os.path.join(CURRENT_DIR, os.path.pardir, folder_name) |
| 35 | if os.path.exists(src): |
| 36 | dst = os.path.join(CURRENT_DIR, 'compile', folder_name) |
| 37 | shutil.rmtree(dst, ignore_errors=True) |
| 38 | distutils.dir_util.copy_tree(src, dst, verbose=0) |
| 39 | else: |
| 40 | raise Exception('Cannot copy {0} folder'.format(src)) |
| 41 | |
| 42 | if not os.path.isfile(os.path.join(CURRENT_DIR, '_IS_SOURCE_PACKAGE.txt')): |
| 43 | copy_files_helper('include') |
no test coverage detected