From 84ae67d53d075710d6cec3932b48d851d51a2a0e Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 12 Dec 2024 10:09:13 +0800 Subject: [PATCH] fix: calculate bentofile path against cwd if given explicitly Signed-off-by: Frost Ming --- src/bentoml/bentos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bentoml/bentos.py b/src/bentoml/bentos.py index 0947c5b64f8..941a29a4454 100644 --- a/src/bentoml/bentos.py +++ b/src/bentoml/bentos.py @@ -402,7 +402,7 @@ def build_bentofile( """ if bentofile: try: - bentofile = resolve_user_filepath(bentofile, build_ctx) + bentofile = resolve_user_filepath(bentofile, None) except FileNotFoundError: raise InvalidArgument(f'bentofile "{bentofile}" not found') else: