Skip to content

Commit

Permalink
fix(export): use path as resource for non-OS paths (#3800)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauyon authored Apr 28, 2023
1 parent 3b8de9b commit 081d2a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/exportable.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def export(
protocol = "osfs"
resource = path if os.sep == "/" else path.replace(os.sep, "/")
else:
resource = ""
resource = path
else:
if any(v is not None for v in [protocol, user, passwd, params, subpath]):
raise ValueError(
Expand Down

0 comments on commit 081d2a5

Please sign in to comment.