Skip to content

Commit 78e1905

Browse files
authored
Merge pull request #1 from dev-five-git/add-resolve
Convert resolve
2 parents c023cfc + da19065 commit 78e1905

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fastapi-fs-router"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Add your description here"
55
readme = "README.md"
66
authors = [{ name = "owjs3901", email = "owjs3901@gmail.com" }]

src/fastapi_fs_router/load_fs_router.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def load_fs_router(
5151
if not route_dir.exists():
5252
return
5353
collected_apis = []
54-
python_root = Path(sys.path[0])
54+
python_root = Path(sys.path[0]).resolve()
5555
cwd = Path(os.getcwd())
5656

5757
normalized_dir = (cwd / route_dir).relative_to(python_root)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)