(url)
| 44 | |
| 45 | |
| 46 | def _fetch_image(url): |
| 47 | path = _get_cache_path(url.encode("utf-8"), ext=".svg") |
| 48 | if not path.exists(): |
| 49 | _download(url, path) |
| 50 | return os.sep + str(path.relative_to(_THIS_DIR)) |
| 51 | |
| 52 | |
| 53 | def _get_relpath(target, base): |
no test coverage detected