D3f0/prymatex — pull request #24 by KelSolaar (2011-11-12 09:57:18+00:00)
Title: Fix incorrect import in "pmx" module.

Hi,

There is an incorrect import statement in "pmx" module, that was revealed because the application was raising an exception. I fixed the import but didn't looked much into the exception itself, I'm on Mac Os X Snow Leopard, Python 2.7.2 x64. Here is the traceback:

Traceback (most recent call last):
File "pmx.py", line 41, in runPrymatexApplication
pmx = app.PMXApplication(options.profile, args)
File "/Users/KelSolaar/Documents/Developement/ThirdParty/prymatex/prymatex/utils/decorator/helpers.py", line 74, in wrapped
retval = f(*largs, **kwargs)
File "/Users/KelSolaar/Documents/Developement/ThirdParty/prymatex/prymatex/core/app.py", line 38, in __init__
self.buildSettings(profile)
File "/Users/KelSolaar/Documents/Developement/ThirdParty/prymatex/prymatex/core/app.py", line 71, in buildSettings
self.settings = PMXSettings(profile)
File "/Users/KelSolaar/Documents/Developement/ThirdParty/prymatex/prymatex/core/settings.py", line 219, in __init__
self.tmsettings = TextMateSettings(os.path.join(TM_PREFERENCES_PATH, TEXTMATE_SETTINGS_NAME))
File "/Users/KelSolaar/Documents/Developement/ThirdParty/prymatex/prymatex/core/settings.py", line 72, in __init__
self.settings = plistlib.readPlist(self.file)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist
rootObject = p.parse(pathOrFile)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse
parser.ParseFile(fileobj)
ExpatError: not well-formed (invalid token): line 1, column 8

Cheers,

Thomas