# Configuration file

CONFIG_FILE = '/etc/pivelli/pivelli.ini'

from ConfigParser import SafeConfigParser, NoOptionError
from optparse import OptionParser

config = SafeConfigParser()
config.read([CONFIG_FILE])

status_dir = config.get('local_lines', 'status_dir').strip()

def get_clis(ip='default'):
	try:
		return [n.strip() for n in config.get('local_lines', ip).split(',')]
	except NoOptionError:
		return [n.strip() for n in config.get('local_lines', 'default').split(',')]
