from paste.deploy import appconfig from pylons import config from nz.config.environment import load_environment here_dir = os.path.dirname(os.path.abspath(__file__)) conf_dir = os.path.dirname(here_dir) conf = appconfig('config:' + os.path.join(conf_dir, 'development.ini')) load_environment(conf.global_conf, conf.local_conf)