2010-06-30, 00:55
Ratings will be (eventually) supported by the backend - not something your addon has to worry about.
ppic Wrote:os.getcwd() returns the path where py the file is executed.
linuxluemmel Wrote:Yes .. But I asked for a function that will return the complet path to the settings ...
this would be easyer than as example ...
os.getcwd + "/../../userdata/addon_data/script-video-ripper"
Regards
Hans
ppic Wrote:sorry but i don't understand what's your need
jmarshall Wrote:You can use getAddonInfo("profile") I think it is to grab the path to your addon_data folder.
ppic Wrote:settings are supported, what do you want to store?
are you talking about xbmc userdata directrory ?
wouldn't it be simpliest to use a cache directory in your script?
spiff Wrote:this would be a rejection reason if you want shit in the official repo. never write to the add-on dir (it may very well be in a read-only path)Inside my addon I do only write to the data-dir. I do not write anything into addon directory.
http://code.google.com/p/swiss-army-knife/source/browse/trunk/shell-linux/blueray-transcode.sh
http://code.google.com/p/swiss-army-knife/wiki/API