Skip to content

Commit e6f940c

Browse files
authored
Use OS specific path separator (#1038)
1 parent 75edeb8 commit e6f940c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesop/labs/web_component.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def web_component(*, path: str, skip_validation: bool = False):
3131
os.path.dirname(os.path.abspath(caller_module_file))
3232
)
3333
full_path = os.path.normpath(os.path.join(caller_module_dir, path))
34-
if not full_path.startswith("/"):
35-
full_path = "/" + full_path
34+
if not full_path.startswith(os.sep):
35+
full_path = os.sep + full_path
3636
js_module_path = full_path
3737

3838
def component_wrapper(fn: C) -> C:

0 commit comments

Comments
 (0)