Fixing linter to work on Windows (ironically, by breaking it).

This commit is contained in:
Ben Vanik 2014-07-11 18:43:35 -07:00
parent 4b6f1882e7
commit 8a6807bd92
2 changed files with 4 additions and 4 deletions

View file

@ -1553,7 +1553,7 @@ def GetHeaderGuardCPPVariable(filename):
fileinfo = FileInfo(filename)
file_path_from_root = fileinfo.RepositoryName()
if _root:
file_path_from_root = re.sub('^' + _root + os.sep, '', file_path_from_root)
file_path_from_root = re.sub('^' + _root + '\/', '', file_path_from_root)
return re.sub(r'[-./\s]', '_', file_path_from_root).upper() + '_'