gui.py tries to import itself, fix included
Closed this issue · 1 comments
Ran into this when selecting "Manage submenu" in the menu editor.
ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'ModuleNotFoundError'>
Error Contents: No module named 'gui'
Traceback (most recent call last):
File "/dvb/kodi.config/addons/script.skinshortcuts/resources/lib/gui.py", line 1951, in onClick
import gui
ModuleNotFoundError: No module named 'gui'
-->End of Python script error report<--
Fixed by deleting line 1951: import gui
And modifying the line after from:
ui= gui.GUI( "script-skinshortcuts.xml", CWD, "default", group=launchGroup, defaultGroup=launchDefaultGroup, nolabels=self.nolabels, groupname=groupName )
to:
ui= GUI( "script-skinshortcuts.xml", CWD, "default", group=launchGroup, defaultGroup=launchDefaultGroup, nolabels=self.nolabels, groupname=groupName )
Fix was provided by AnonTester on the Kodi forum.
Thanks for the bug report. Fixed in latest master branch 👍