edk2toollib/uefi/edk2/path_utilities.py
def GetAbsolutePathOnThisSystemFromEdk2RelativePath(self, relpath, log_errors=True):
        ''' Given a edk2 relative path return an absolute path to the file
        in this workspace.

        Note: For case insensitive operating systems the case of the input
        relpath will be used for the return value even if it doesn't match
        the case in the filesystem.

        If not valid or doesn't exist return None'''

        if relpath is None:
            return None
        relpath = relpath.replace("/", os.sep)
        abspath = os.path.join(self.WorkspacePath, relpath)
        if os.path.exists(abspath):
            return abspath

        for a in self.PackagePathList:
            abspath = os.path.join(a, relpath)
            if(os.path.exists(abspath)):
                return abspath
        if log_errors:
            self.logger.error("Failed to convert Edk2Relative Path to an Absolute Path on this system.")
            self.logger.error("Relative Path: %s" % relpath)

        return None
 Given a edk2 relative path return an absolute path to the file
        in this workspace.

        Note: For case insensitive operating systems the case of the input
        relpath will be used for the return value even if it doesn't match
        the case in the filesystem.

        If not valid or doesn't exist return None
Given a edk2 relative path return an absolute path to the file
in this workspace.

For case insensitive operating systems the case of the input
relpath will be used for the return value even if it doesn't match
the case in the filesystem.

If not valid or doesn't exist return None
Given a edk2 relative path return an absolute path to the file in this workspace . For case insensitive operating systems the case of the input relpath will be used for the return value even if it doesn ' t match the case in the filesystem . If not valid or doesn ' t exist return None
def GetAbsolutePathOnThisSystemFromEdk2RelativePath(self, relpath, log_errors=True):
        if relpath is None:
            return None
        relpath = relpath.replace("/", os.sep)
        abspath = os.path.join(self.WorkspacePath, relpath)
        if os.path.exists(abspath):
            return abspath
        for a in self.PackagePathList:
            abspath = os.path.join(a, relpath)
            if(os.path.exists(abspath)):
                return abspath
        if log_errors:
            self.logger.error("Failed to convert Edk2Relative Path to an Absolute Path on this system.")
            self.logger.error("Relative Path: %s" % relpath)
        return None
def GetAbsolutePathOnThisSystemFromEdk2RelativePath ( self , relpath , log_errors = True ) : if relpath is None : return None relpath = relpath . replace ( "/" , os . sep ) abspath = os . path . join ( self . WorkspacePath , relpath ) if os . path . exists ( abspath ) : return abspath for a in self . PackagePathList : abspath = os . path . join ( a , relpath ) if ( os . path . exists ( abspath ) ) : return abspath if log_errors : self . logger . error ( "Failed to convert Edk2Relative Path to an Absolute Path on this system." ) self . logger . error ( "Relative Path: %s" % relpath ) return None
Given a edk2 relative path return an absolute path to the file
in this workspace.
Given a edk2 relative path return an absolute path to the file in this workspace .
''' Given a edk2 relative path return an absolute path to the file
        in this workspace.

        Note: For case insensitive operating systems the case of the input
        relpath will be used for the return value even if it doesn't match
        the case in the filesystem.

        If not valid or doesn't exist return None'''
self
relpath
log_errors