#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4

import simplejson

class Config():

    def __init__(self, path):
        # load the config, and parse it. i chose json because
        # it's in the python stdlib and is language-neutral
        f = open(path)
        self.raw = f.read()
        self.data = simplejson.loads(self.raw)

    def __getitem__(self, key):
        return self.data[key]
        
    def has_key(self, key):
        return self.data.has_key(key)

@@ -49,26 +49,8 @@
 =4%0A%0A
-import simplejson%0A
 %0Acla
@@ -227,96 +227,42 @@
     
-f = open(path)%0A        self.raw = f.read()%0A        self.data = simplejson.loads(self.raw
+self.data = eval(file(path).read()
 )%0A%0A 

read config with eval instead of simplejson