parameters: (path, restype='plst', resid=0)
return_statement: return readPlistFromString(plistData)
docstring: Read plst resource from the resource fork of path.
docstring_summary: Read plst resource from the resource fork of path.
docstring_tokens: Read plst resource from the resource fork of path .
function: def readPlistFromResource(path, restype='plst', resid=0):
      """Read plst resource from the resource fork of path.
      """
      warnings.warnpy3k("In 3.x, readPlistFromResource is removed.",
                        stacklevel=2)
      from Carbon.File import FSRef, FSGetResourceForkName
      from Carbon.Files import fsRdPerm
      from Carbon import Res
      fsRef = FSRef(path)
      resNum = Res.FSOpenResourceFile(fsRef, FSGetResourceForkName(), fsRdPerm)
      Res.UseResFile(resNum)
      plistData = Res.Get1Resource(restype, resid).data
      Res.CloseResFile(resNum)
      return readPlistFromString(plistData)
function_tokens: def readPlistFromResource ( path , restype = 'plst' , resid = 0 ) : warnings . warnpy3k ( "In 3.x, readPlistFromResource is removed." , stacklevel = 2 ) from Carbon . File import FSRef , FSGetResourceForkName from Carbon . Files import fsRdPerm from Carbon import Res fsRef = FSRef ( path ) resNum = Res . FSOpenResourceFile ( fsRef , FSGetResourceForkName ( ) , fsRdPerm ) Res . UseResFile ( resNum ) plistData = Res . Get1Resource ( restype , resid ) . data Res . CloseResFile ( resNum ) return readPlistFromString ( plistData )