Kodi Community Forum

Full Version: Odd Paths in Log of Windows Store Version
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a few folks using Artist Slideshow on the Windows Store version of Kodi 17. When they post logs, the log files are showing paths I would expect to see for the stand alone version of Kodi (i.e. C:\Users\<username>\AppData\roaming\Kodi...). I don't have a Windows 10 machine, so I can't test to see if that's just a logging convention or if AS is really looking/putting things in the wrong place. Here's how I determine the userdata folder:

Code:
addon        = xbmcaddon.Addon()
addonname    = addon.getAddonInfo('id')
addonversion = addon.getAddonInfo('version')
addonpath    = addon.getAddonInfo('path').decode('utf-8')
addonicon    = xbmc.translatePath('%s/icon.png' % addonpath )
language     = addon.getLocalizedString

...

self.DATAROOT = xbmc.translatePath('special://profile/addon_data/%s' % addonname ).decode('utf-8')

With this should I seem something different in the debug log file for the standalone and Windows Store versions?
i don't see anything out of the ordinary with your code.

the preferred way to get your addon_data folder is
Code:
self.DATAROOT = xbmc.translatePath(addon.getAddonInfo('profile')).decode('utf-8')
but the result should be the same