summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Ecc
diff options
context:
space:
mode:
authorChen, Christine <Yuwei.Chen@intel.com>2021-10-12 12:07:38 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-10-13 09:07:16 +0000
commit6ed6abd6c116e8599876a2876b77e172e800b13e (patch)
tree95b3d4778693dbdce94c025b90c1e9fc80ec1d39 /BaseTools/Source/Python/Ecc
parent4225a464c6daff979330c20387ade21fff85690e (diff)
downloadedk2-6ed6abd6c116e8599876a2876b77e172e800b13e.tar.gz
edk2-6ed6abd6c116e8599876a2876b77e172e800b13e.tar.bz2
edk2-6ed6abd6c116e8599876a2876b77e172e800b13e.zip
BaseTools: Change RealPath to AbsPath
Currently the realpath is used when parse modules, which shows the path with a drive letter in build log. In Windows 'subst' comand is used to associates a path with a drive letter, when use the mapped drive letter for build, with realpath function the build log will have different disk letter info which will cause confusion. In this situation, if use adspath function to show the path info, it will keep same letter with the mapped drive letter, which avoids confusion. This patch modifies the realpath to abspath. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Bob Feng <bob.c.feng@Intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
-rw-r--r--BaseTools/Source/Python/Ecc/EccMain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/Ecc/EccMain.py b/BaseTools/Source/Python/Ecc/EccMain.py
index 72edbea3b8..a349cd8014 100644
--- a/BaseTools/Source/Python/Ecc/EccMain.py
+++ b/BaseTools/Source/Python/Ecc/EccMain.py
@@ -105,7 +105,7 @@ class Ecc(object):
def InitDefaultConfigIni(self):
paths = map(lambda p: os.path.join(p, 'Ecc', 'config.ini'), sys.path)
- paths = (os.path.realpath('config.ini'),) + tuple(paths)
+ paths = (os.path.abspath('config.ini'),) + tuple(paths)
for path in paths:
if os.path.exists(path):
self.ConfigFile = path