summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py b/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py
index b154466602..aa3a2bbcab 100644
--- a/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py
+++ b/BaseTools/Plugin/DebugMacroCheck/BuildPlugin/DebugMacroCheckBuildPlugin.py
@@ -58,12 +58,12 @@ class DebugMacroCheckBuildPlugin(IUefiBuildPlugin):
if "no-target" in build_target:
return 0
- pp = builder.pp.split(os.pathsep)
- edk2 = Edk2Path(builder.ws, pp)
+ edk2 = builder.edk2path
package = edk2.GetContainingPackage(
- builder.mws.join(builder.ws,
- builder.env.GetValue(
- "ACTIVE_PLATFORM")))
+ builder.edk2path.GetAbsolutePathOnThisSystemFromEdk2RelativePath(
+ builder.env.GetValue("ACTIVE_PLATFORM")
+ )
+ )
package_path = Path(
edk2.GetAbsolutePathOnThisSystemFromEdk2RelativePath(
package))