Lines Matching refs:pathOrFile
68 def readPlist(pathOrFile): argument
74 if isinstance(pathOrFile, (str, unicode)):
75 pathOrFile = open(pathOrFile)
78 rootObject = p.parse(pathOrFile)
80 pathOrFile.close()
84 def writePlist(rootObject, pathOrFile): argument
89 if isinstance(pathOrFile, (str, unicode)):
90 pathOrFile = open(pathOrFile, "w")
92 writer = PlistWriter(pathOrFile)
97 pathOrFile.close()
343 def fromFile(cls, pathOrFile): argument
345 rootObject = readPlist(pathOrFile)
351 def write(self, pathOrFile): argument
353 writePlist(self, pathOrFile)