![]() |
|
XML File for Window is missing - Printable Version +- XBMC Community Forum (http://forum.xbmc.org) +-- Forum: Development (/forumdisplay.php?fid=32) +--- Forum: Python Add-on Development (/forumdisplay.php?fid=26) +--- Thread: XML File for Window is missing (/showthread.php?tid=123604) |
XML File for Window is missing - jweber72 - 2012-02-22 04:05 Im just starting out here, and cant see to figure out how to get my plugin to find the xml file properly. I am using http://xbmc-scripting.googlecode.com/svn/trunk/XBMC%20Changelog/ this as the basis for my test. This is the error I am receiving: Code: 20:51:21 T:3644 M:2280607744 ERROR: Traceback (most recent call last):The code I am using: Code: if ( __name__ == "__main__" ):My directory structure is as follows: plugin.test.dialog/resources/skins/Default/PAL/script-XBMC_Changelog-main.xml I have tried changing the directory names to DefaultSkin, Default, and a ton of other things. Maybe Im just not hitting the right one. Ive tried to read the threads on this issue, but there is so much historical data Im not sure whats out of date and whats not. Any pointers? Thanks J - giftie - 2012-02-22 05:17 jweber72 Wrote:Im just starting out here, and cant see to figure out how to get my plugin to find the xml file properly. I am using http://xbmc-scripting.googlecode.com/svn/trunk/XBMC%20Changelog/ this as the basis for my test. Try changing the 'PAL' directory to '720p' What version of XBMC are you developing for? For developing never addons(Dharma/Eden and beyond) check out this -> http://code.google.com/p/xbmc-gpodder-integration/downloads/list Also 'os.getcwd()' is no longer a valid function in Eden. You need to use getAddonInfo('path') Code: import xbmcaddon- jweber72 - 2012-02-22 14:26 Thanks for the help. When I did the following: Code: ui = GUI( "script-XBMC_Changelog-main.xml", __addon__.getAddonInfo('path'), "DefaultSkin" )with a directory structure of: Code: plugin.test.dialog/resources/skins/DefaultSkin/720pThe xml file is found. I had combed over that pdf you linked to, but it doesnt have much for the gui. Its been a struggle to figure out how to do this. On to figuring out the controls and thanks again. J |