2010-08-24, 04:17
I've got my ICanHasCheezburger addon working, but one thing is bugging me for maintenance.
I currently have to set the version in addon.xml, addon.py and the settings.xml.
addon.xml
addon.py
and settings.xml
I've got to be making this more difficult than it has to be! What's the best way to handle this?
Brian
I currently have to set the version in addon.xml, addon.py and the settings.xml.
addon.xml
Code:
<addon id="plugin.image.icanhascheezburger.com" name="ICanHasCheezburger.com" version="0.4" provider-name="bmillham">
addon.py
Code:
__plugin__ = "ICanHasCheezburger.com"
__author__ = "Brian Millham <[email protected]>"
__url__ = "http://github.com/bmillham/plugin.pictures.icanhascheezburger.com"
__website__ = "http://github.com/bmillham/plugin.pictures.icanhascheezburger.com"
__date__ = "20 August 2010"
__version__ = "0.4"
and settings.xml
Code:
<setting id="version" type="text" label="30100" default="0.4" enable="false" />
<setting id="author" type="text" label="30101" default="Brian Millham <[email protected]>" enable="false" />
<setting id="website" type="text" label="30102" default="http://github.com/bmillham/plugin.pictures.icanhascheezburger.com" enable="false" />
I've got to be making this more difficult than it has to be! What's the best way to handle this?
Brian