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?
# checking to see if variables are set in the local_conf.py file. If not it # sets a default value. This method seems to work well, but I have a # hunch there is a cleaner way of doing this try: crop_small = config.CROP_SMALL except(AttributeError): crop_small = 87 try: crop_medium = config.CROP_MEDIUM except(AttributeError): crop_medium = 81 try: crop_large = config.CROP_LARGE except(AttributeError): crop_large = 75 -- shane ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel