From 899e35edbae86f97890c49528df599681308db57 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Sat, 17 Feb 2024 02:53:51 +0700 Subject: [PATCH] Deprecate get_asset_path (#2644) --- reflex/compiler/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reflex/compiler/utils.py b/reflex/compiler/utils.py index 052746ad8..e408d012a 100644 --- a/reflex/compiler/utils.py +++ b/reflex/compiler/utils.py @@ -382,6 +382,12 @@ def get_asset_path(filename: str | None = None) -> str: Returns: 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: return constants.Dirs.WEB_ASSETS else: