from os import path

class ConfigPath(object):
    def __getattr__(self, key):
        return_path = path.join(path.dirname(__file__), key + '.cfg')
        if not path.exists(return_path): return None
        return return_path

config_path = ConfigPath()

@@ -54,27 +54,19 @@
 f __
-getattr
+init
 __(self
-, key
 ):%0A 
@@ -76,22 +76,29 @@
     
-return
+self.config
 _path
+s
  = 
+%5B
 path
@@ -112,25 +112,172 @@
 ath.
-dirname(__file__)
+expanduser('~'), '.magpie'), path.dirname(__file__)%5D%0A    def __getattr__(self, key):%0A        for path in self.config_paths:%0A            return_path = path.join(path
 , ke
@@ -300,14 +300,14 @@
     
-if not
+    if
  pat
@@ -340,12 +340,19 @@
 urn 
-None
+return_path
 %0A   
@@ -363,27 +363,20 @@
  return 
-return_path
+None
 %0A%0Aconfig

Enable configuration from home directory