summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Trim/Trim.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/Trim/Trim.py')
-rw-r--r--BaseTools/Source/Python/Trim/Trim.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/Trim/Trim.py b/BaseTools/Source/Python/Trim/Trim.py
index 76944c0e25..b46d507b4e 100644
--- a/BaseTools/Source/Python/Trim/Trim.py
+++ b/BaseTools/Source/Python/Trim/Trim.py
@@ -166,6 +166,8 @@ def TrimPreprocessedFile(Source, Target, ConvertHex, TrimLong):
if len(MatchList) == 2:
LineNumber = int(MatchList[0], 0)
InjectedFile = MatchList[1]
+ InjectedFile = os.path.normpath(InjectedFile)
+ InjectedFile = os.path.normcase(InjectedFile)
# The first injetcted file must be the preprocessed file itself
if PreprocessedFile == "":
PreprocessedFile = InjectedFile