BaseTools: Update UPT tool to support multiple workspaces
Update UPT to refer MultipleWorkspace class to convert the file path from WORKSPACE and PACKAGES_PATH. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hesheng Chen <hesheng.chen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18580 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -27,6 +27,7 @@ from Library.DataType import TAB_SPACE_SPLIT
|
||||
from Library.String import GetSplitValueList
|
||||
from Library.ExpressionValidate import IsValidBareCString
|
||||
from Library.ExpressionValidate import IsValidFeatureFlagExp
|
||||
from CommonDataClass.CommonClass import MultipleWorkspace as mws
|
||||
|
||||
## __HexDigit() method
|
||||
#
|
||||
@ -236,7 +237,7 @@ def IsValidPath(Path, Root):
|
||||
|
||||
Path = os.path.normpath(Path).replace('\\', '/')
|
||||
Root = os.path.normpath(Root).replace('\\', '/')
|
||||
FullPath = os.path.normpath(os.path.join(Root, Path)).replace('\\', '/')
|
||||
FullPath = mws.join(Root, Path)
|
||||
|
||||
if not os.path.exists(FullPath):
|
||||
return False
|
||||
|
Reference in New Issue
Block a user