Browse Source

Fix path comparison on Windows

somov 1 year ago
parent
commit
e3ca76a02e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build/scripts/copy_docs_files_to_dir.py

+ 1 - 1
build/scripts/copy_docs_files_to_dir.py

@@ -95,7 +95,7 @@ def main():
                 for f in files:
                     if os.path.islink(os.path.join(root, f)):
                         continue
-                    file_src = os.path.join(root, f)
+                    file_src = os.path.normpath(os.path.join(root, f))
                     assert file_src.startswith(source_root)
                     file_dst = os.path.join(dst, os.path.relpath(root, abs_docs_dir), f)
                     copy_file(file_src, file_dst, overwrite=is_overwrite_existing, orig_path=file_src[len(source_root):])