Windows - How to have script use its own settings.xml file? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: Windows - How to have script use its own settings.xml file? (/showthread.php?tid=77568) |
Windows - How to have script use its own settings.xml file? - RandomXBMCUser - 2010-07-21 Could somebody please enlighten me on how to write and get settings from a settings.xml file in a specific script directory in Windows? Like fetching from the user profile's scripts directory? I know it uses settings = then some path...I just cant figure it out. - jmarshall - 2010-07-21 xbmcaddon.getSetting("foo"). setSetting() is also there. - RandomXBMCUser - 2010-07-21 Forgive me for being dense, but could someone make a small code sample that shows how to do this, saving to an xml file that is in a specific script directory? I'm not a python coder, I really need to deconstruct code to learn. Thanks. |