]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/String.py
BaseTools: Fix a bug Build directory should relative to WORKSPACE
[mirror_edk2.git] / BaseTools / Source / Python / Common / String.py
index 81c053df27cdc8eda177410ad8a77fe744439060..4a8c03e88e28297e7c158fc27a420f0851e22d62 100644 (file)
@@ -311,7 +311,7 @@ def NormPath(Path, Defines={}):
         # To local path format\r
         #\r
         Path = os.path.normpath(Path)\r
-        if Path.startswith(GlobalData.gWorkspace) and not os.path.exists(Path):\r
+        if Path.startswith(GlobalData.gWorkspace) and not Path.startswith(GlobalData.gBuildDirectory) and not os.path.exists(Path):\r
             Path = Path[len (GlobalData.gWorkspace):]\r
             if Path[0] == os.path.sep:\r
                 Path = Path[1:]\r