Searched refs:pathOrFile (Results 1 – 4 of 4) sorted by relevance
68 def readPlist(pathOrFile): argument74 if isinstance(pathOrFile, (str, unicode)):75 pathOrFile = open(pathOrFile)78 rootObject = p.parse(pathOrFile)80 pathOrFile.close()84 def writePlist(rootObject, pathOrFile): argument89 if isinstance(pathOrFile, (str, unicode)):90 pathOrFile = open(pathOrFile, "w")92 writer = PlistWriter(pathOrFile)97 pathOrFile.close()[all …]
46 .. function:: readPlist(pathOrFile)48 Read a plist file. *pathOrFile* may either be a file name or a (readable)57 .. function:: writePlist(rootObject, pathOrFile)59 Write *rootObject* to a plist file. *pathOrFile* may either be a file name136 pl = readPlist(pathOrFile)
452 def dump(self, pathOrFile): argument468 plist.write(pathOrFile)
2467 interface for reading and writing plist files: ``readPlist(pathOrFile)``2468 and ``writePlist(rootObject, pathOrFile)``