copy resource `name` to `dst`
(name, dst)
| 265 | from pathlib import Path |
| 266 | |
| 267 | def cp(name, dst): |
| 268 | """copy resource `name` to `dst`""" |
| 269 | fi = resources.files('tqdm') / name |
| 270 | dst.write_bytes(fi.read_bytes()) |
| 271 | log.info("written:%s", dst) |
| 272 | if manpath is not None: |
| 273 | cp('tqdm.1', Path(manpath) / 'tqdm.1') |
| 274 | if comppath is not None: |