BaseTools/Source/Python/Common/String.py:
authorjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 17 Oct 2007 17:44:03 +0000 (17:44 +0000)
committerjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Wed, 17 Oct 2007 17:44:03 +0000 (17:44 +0000)
  Removed code which could break an absolute path for unix-like operating
  systems.  Change was verified on edk2 Nt32Pkg under Windows XP as well.

git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@830 7335b38e-4728-0410-8992-fb3ffe349368

Source/Python/Common/String.py

index 3839023..04fff15 100644 (file)
@@ -246,8 +246,6 @@ def NormPath(Path, Defines = {}):
 \r
         # To local path format\r
         Path = os.path.normpath(Path)\r
-        if Path[0] == os.path.sep:\r
-            Path = Path[1:]\r
 \r
     return Path\r
 \r