I am wrapping a tool in a decorator which just sends a mail with some info on throw, however, the UIC module doesn't seem to like this.<br><br>File "J:\data\Production\TechArt\Builds\Latest\Tools\CryMayaTools\CryRigging\rigTools\rigTools.py", line 29, in __init__<br>
self.ui = uic.loadUi(uiPath)<br>File "J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\__init__.py", line 221, in loadUi<br>return DynamicUILoader().loadUi(uifile, baseinstance)<br>File "J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\Loader\loader.py", line 50, in __init__<br>
UIParser.__init__(self, QtCore, QtGui, LoaderCreatorPolicy())<br>File "J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\uiparser.py", line 127, in __init__<br>self.factory = QObjectCreator(creatorPolicy)<br>
File "J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\objcreator.py", line 91, in __init__<br>if load_plugin(open(filename), plugin_globals, plugin_locals):<br>File "J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\port_v2\load_plugin.py", line 47, in load_plugin<br>
raise WidgetPluginError("%s: %s" % (e.__class__, str(e)))<br>WidgetPluginError: : invalid syntax (, line 31)<br><br>Here's what the decorator looks like; pretty simple:<br><a href="http://pastebin.com/zrdjCKfa">http://pastebin.com/zrdjCKfa</a><br>
<br>-- <br>CE<br><br>