MCPcopy Create free account
hub / github.com/plotly/dash / app_get_asset_url

Function app_get_asset_url

dash/_get_paths.py:18–30  ·  view source on GitHub ↗
(config, path)

Source from the content-addressed store, hash-verified

16
17
18def 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
33def get_relative_path(path):

Callers 2

get_asset_urlFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…