Bug 1514341 - mach clang-format - fix path on windows. r=sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D14605

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andi-Bogdan Postelnicu 2018-12-15 07:24:18 +00:00
Родитель 33c198d620
Коммит d471aefa7d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -9,6 +9,7 @@ import hashlib
import itertools
import json
import logging
import ntpath
import operator
import os
import re
@ -2856,7 +2857,7 @@ class StaticAnalysis(MachCommandBase):
# and run clang-format on the temp directory
# and show the diff
original_path = l[0]
local_path = original_path.replace(self.topsrcdir, ".")
local_path = ntpath.basename(original_path)
target_file = os.path.join(tmpdir, local_path)
faketmpdir = os.path.dirname(target_file)
if not os.path.isdir(faketmpdir):