#! /usr/bin/env python # encoding: utf-8 ''' @author: nickb Copyright (c) 2012 University of Wisconsin SSEC. All rights reserved. ''' # Location of your config file: CONFIG_FILE = "/data/nickb/dev/viirs_cm/trunk/pyvcm/vcm.cfg" # --------------------------------------- import ConfigParser # Thin wrapper over the ConfigParser library for our scripts to call # without having to know about the vcm_config file. def get(section, key): config = ConfigParser.SafeConfigParser() config.read(CONFIG_FILE) return config.get(section, key)