diff --git a/build/check.py b/build/check.py index 040ede83df..da5e8e30aa 100755 --- a/build/check.py +++ b/build/check.py @@ -98,7 +98,7 @@ def check_css_lint(args): def get(*path_components): return shakaBuildHelpers.get_all_files( os.path.join(base, *path_components), match) - files = (get('ui') + get('demo')); + files = (get('ui') + get('demo')) config_path = os.path.join(base, '.csslintrc') linter = compiler.CssLinter(files, config_path) diff --git a/build/compiler.py b/build/compiler.py index 85c686b1c1..15ad83aea6 100644 --- a/build/compiler.py +++ b/build/compiler.py @@ -357,6 +357,10 @@ def lint(self, fix=False, force=False): deps = self.source_files + [self.config_path] if not force and not _must_build(self.output, deps): return True + # Windows shows an error when the file location has '\' . + if sys.platform == 'win32': + self.config_path = self.config_path.replace('\\', '/') + self.source_files = [f.replace('\\', '/') for f in self.source_files] stylelint = shakaBuildHelpers.get_node_binary('stylelint') cmd_line = stylelint + [