Skip to content

Commit 83fcb8d

Browse files
authored
Replace Path.absolute with os.path.abspath (#72)
1 parent 92c0e42 commit 83fcb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/django_idom/http/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async def web_modules_file(request: HttpRequest, file: str) -> HttpResponse:
1212
"""Gets JavaScript required for IDOM modules at runtime. These modules are
1313
returned from cache if available."""
1414
web_modules_dir = IDOM_WED_MODULES_DIR.current
15-
path = web_modules_dir.joinpath(*file.split("/")).absolute()
15+
path = os.path.abspath(web_modules_dir.joinpath(*file.split("/")))
1616

1717
# Prevent attempts to walk outside of the web modules dir
1818
if str(web_modules_dir) != os.path.commonpath((path, web_modules_dir)):

0 commit comments

Comments
 (0)