From 61513593c575d94948013302d56e5129ce33fd7b Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Thu, 20 Apr 2017 18:01:07 -0700 Subject: [PATCH] deploy-ng: Fix exclude paths on Windows --- direct/src/showutil/dist.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/showutil/dist.py b/direct/src/showutil/dist.py index 0dd3772389..029656086b 100644 --- a/direct/src/showutil/dist.py +++ b/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