Deprecate get_asset_path (#2644)
This commit is contained in:
parent
192bddb5d4
commit
899e35edba
@ -382,6 +382,12 @@ def get_asset_path(filename: str | None = None) -> str:
|
|||||||
Returns:
|
Returns:
|
||||||
The path of the asset.
|
The path of the asset.
|
||||||
"""
|
"""
|
||||||
|
console.deprecate(
|
||||||
|
feature_name="rx.get_asset_path",
|
||||||
|
reason="use rx.get_upload_dir() instead.",
|
||||||
|
deprecation_version="0.4.0",
|
||||||
|
removal_version="0.5.0",
|
||||||
|
)
|
||||||
if filename is None:
|
if filename is None:
|
||||||
return constants.Dirs.WEB_ASSETS
|
return constants.Dirs.WEB_ASSETS
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user