Преглед на файлове

deploy-ng: Fix exclude paths on Windows

Mitchell Stokes преди 8 години
родител
ревизия
61513593c5
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      direct/src/showutil/dist.py

+ 4 - 2
direct/src/showutil/dist.py

@@ -245,8 +245,10 @@ class build_apps(distutils.core.Command):
                 dst = os.path.normpath(dst)
 
                 for pattern in ignore_copy_list:
-                    #print("check ignore:", pattern, src, pattern.matches(src))
-                    if pattern.matches(src):
+                    # Normalize file paths across platforms
+                    path = p3d.Filename.from_os_specific(src).get_fullpath()
+                    #print("check ignore:", pattern, src, pattern.matches(path))
+                    if pattern.matches(path):
                         print("skipping file", src)
                         return