diff --git a/dash/dash.py b/dash/dash.py index 71bf360834..d2f6b8fe5b 100644 --- a/dash/dash.py +++ b/dash/dash.py @@ -2171,7 +2171,7 @@ def _import_layouts_from_pages(self): continue page_filename = os.path.join(root, file).replace("\\", "/") - _, _, page_filename = page_filename.partition(walk_dir + "/") + _, _, page_filename = page_filename.partition(walk_dir.replace("\\", "/") + "/") page_filename = page_filename.replace(".py", "").replace("/", ".") pages_folder = (