(config, path)
| 16 | |
| 17 | |
| 18 | def app_get_asset_url(config, path): |
| 19 | if config.assets_external_path: |
| 20 | prefix = config.assets_external_path |
| 21 | else: |
| 22 | prefix = config.requests_pathname_prefix |
| 23 | return "/".join( |
| 24 | [ |
| 25 | # Only take the first part of the pathname |
| 26 | prefix.rstrip("/"), |
| 27 | config.assets_url_path.lstrip("/"), |
| 28 | path, |
| 29 | ] |
| 30 | ) |
| 31 | |
| 32 | |
| 33 | def get_relative_path(path): |
no outgoing calls
searching dependent graphs…