Did I find the right examples for you? yes no

All Samples(562)  |  Call(542)  |  Derive(0)  |  Import(20)
Read a .plist file. 'pathOrFile' may either be a file name or a
(readable) file object. Return the unpacked root object (which
usually is a dictionary).

        def readPlist(pathOrFile):
    """Read a .plist file. 'pathOrFile' may either be a file name or a
    (readable) file object. Return the unpacked root object (which
    usually is a dictionary).
    """
    didOpen = 0
    if isinstance(pathOrFile, (str, unicode)):
        pathOrFile = open(pathOrFile)
        didOpen = 1
    p = PlistParser()
    rootObject = p.parse(pathOrFile)
    if didOpen:
        pathOrFile.close()
    return rootObject
        


src/p/y/pymacadmin-HEAD/utilities/diskimage_unittesting/tests/example_plist_test.py   pymacadmin(Download)
    if returncode:
      raise StandardError("unable to convert plist to xml1")
    self.imageinfo = plistlib.readPlist(imageinfo_file)
 
  def tearDown(self):

src/a/u/autopep8-1.0.1/test/example_with_reduce.py   autopep8(Download)
            if os.path.exists(plist):
                if hasattr(plistlib, 'readPlist'):
                    plist_content = plistlib.readPlist(plist)
                    if 'ProductVersion' in plist_content:
                        version = plist_content['ProductVersion']

src/a/u/autopep8-HEAD/test/example_with_reduce.py   autopep8(Download)
            if os.path.exists(plist):
                if hasattr(plistlib, 'readPlist'):
                    plist_content = plistlib.readPlist(plist)
                    if 'ProductVersion' in plist_content:
                        version = plist_content['ProductVersion']

src/p/r/prymatex-HEAD/prymatex/share/Support/lib/plist.py   prymatex(Download)
def readPlist(filePath):
    try:
        data = plistlib.readPlist(filePath)
    except Exception as e:
        # Solo si tiene error

src/p/r/prymatex-HEAD/prymatex/utils/plist.py   prymatex(Download)
def readPlist(filePath):
    try:
        data = plistlib.readPlist(filePath)
    except Exception as e:
        # Solo si tiene error

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/XLixian/alp/core.py   AlfredWorkflow.com(Download)
    infoPath = os.path.abspath("./info.plist")
    if os.path.exists(infoPath):
        info = plistlib.readPlist(infoPath)
        try:
            gBundleID = info["bundleid"]
def readPlist(path):
    if os.path.isabs(path):
        return plistlib.readPlist(path)
    else:
        return plistlib.readPlist(storage(path))

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/tower-alfred-workflow/alp/core.py   AlfredWorkflow.com(Download)
    infoPath = os.path.abspath("./info.plist")
    if os.path.exists(infoPath):
        info = plistlib.readPlist(infoPath)
        try:
            gBundleID = info["bundleid"]
def readPlist(path):
    if os.path.isabs(path):
        return plistlib.readPlist(path)
    else:
        return plistlib.readPlist(storage(path))

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Toggl-Time-Tracking/alp/core.py   AlfredWorkflow.com(Download)
def bundle():
    infoPath = os.path.abspath("./info.plist")
    if os.path.exists(infoPath):
        info = plistlib.readPlist(infoPath)
        try:
def readPlist(path):
    if os.path.isabs(path):
        return plistlib.readPlist(path)
    else:
        return plistlib.readPlist(storage(path))

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/SublimeTextProjects/alp/core.py   AlfredWorkflow.com(Download)
def bundle():
    infoPath = os.path.abspath("./info.plist")
    if os.path.exists(infoPath):
        info = plistlib.readPlist(infoPath)
        try:
def readPlist(path):
    if os.path.isabs(path):
        return plistlib.readPlist(path)
    else:
        return plistlib.readPlist(storage(path))

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Sickbeard/alp/core.py   AlfredWorkflow.com(Download)
    infoPath = os.path.abspath("./info.plist")
    if os.path.exists(infoPath):
        info = plistlib.readPlist(infoPath)
        try:
            gBundleID = info["bundleid"]
def readPlist(path):
    if os.path.isabs(path):
        return plistlib.readPlist(path)
    else:
        return plistlib.readPlist(storage(path))

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next