Hi,
Each plugin have a dedicated directory for it's own data for the user profile, usually (in Winodws, but in similar places in other OSs): %AppData%/XBMC/userdata/addon/plugin.name.here/
How do I get this path to store my file in a cross-platform way (won't break if I change system). It would be great if the path is under to the userdata of the current profile (or the master profile if it is the current one)
Thanks
Getting the plugin userdata path
tria
Member Posts: 73 Joined: Jan 2012 Reputation: 0 |
2012-03-08 20:44
Post: #1
|
| find quote |
Martijn
Team-XBMC Joined: Jul 2011 Reputation: 115 Location: Dawn of time |
2012-03-08 20:53
Post: #2
PHP Code: __addon__ = xbmcaddon.Addon(id='script.artwork.downloader')Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules. For troubleshooting and bug reporting, make sure you read this first For your mediacenter artwork go to ![]() |
| find quote |
tria
Member Posts: 73 Joined: Jan 2012 Reputation: 0 |
2012-03-08 20:57
Post: #3
Thanks, you are the greatest!
|
| find quote |
Martijn
Team-XBMC Joined: Jul 2011 Reputation: 115 Location: Dawn of time |
2012-03-08 21:03
Post: #4
No problem. Those are the easy questions
![]() Feel free to ask more if you need some help Always read the XBMC online-manual, FAQ and search the forums before posting. Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules. For troubleshooting and bug reporting, make sure you read this first For your mediacenter artwork go to ![]() |
| find quote |


![[Image: fanarttv.png]](http://trakt.us/images/thanks/fanarttv.png)

Search
Help