Hi, shane wrote: > I was not sure if thier is a standard way to read varibles in the > local config. For my plugin I used the following method. Is thier a > better way to do this?
I can't recall if you can do this in 1.5 but in 2.0/CVS you can do something like this in your plugin code to set defaults: def config(self): return [('VAR1', 10, 'Description of VAR1, an int.'), ('VAR2', 'test', 'Description of VAR2, a string.')] Then in other parts of your plugin code you can reference config.VAR1 and get either the default from your plugin or what the user set in local_conf.py. -Rob -- ------------------------------------------------------- Rob Shortt | http://tvcentric.com | Freevo [EMAIL PROTECTED] | http://freevo.sf.net | Free your TV
signature.asc
Description: OpenPGP digital signature