Chromium Code Reviews| Index: tools/presubmit.py |
| diff --git a/tools/presubmit.py b/tools/presubmit.py |
| index 780dab9cf9e4c86e347dac5b382ab989268e6dc6..aa0f55894ff12052562c7565409ccfc967c701e8 100755 |
| --- a/tools/presubmit.py |
| +++ b/tools/presubmit.py |
| @@ -292,7 +292,7 @@ class SourceProcessor(SourceFileProcessor): |
| stdout=PIPE, cwd=path, shell=True) |
| result = [] |
| for file in output.stdout.read().split(): |
| - for dir_part in os.path.dirname(file).split(os.sep): |
| + for dir_part in os.path.dirname(file).replace(os.sep,'/').split('/'): |
|
Yang
2013/10/23 08:25:54
I took the liberty to change this to .dirname(file
Yang
2013/10/23 16:14:23
nvm this.
|
| if self.IgnoreDir(dir_part): |
| break |
| else: |