(options, path, dest)
| 54 | path = abspath(path, '..') |
| 55 | |
| 56 | def mkpaths(options, path, dest): |
| 57 | if dest.endswith('/') or dest.endswith('\\'): |
| 58 | target_path = abspath(options.install_path, dest, os.path.basename(path)) |
| 59 | else: |
| 60 | target_path = abspath(options.install_path, dest) |
| 61 | if os.path.isabs(path): |
| 62 | source_path = path |
| 63 | else: |
| 64 | source_path = abspath(options.root_dir, path) |
| 65 | return source_path, target_path |
| 66 | |
| 67 | def try_copy(options, path, dest): |
| 68 | source_path, target_path = mkpaths(options, path, dest) |
no test coverage detected
searching dependent graphs…