Commits

Giovanni Bajo committed 7228c05

Fix bug when loading config file (wrong path).

Comments (0)

Files changed (1)

                 os.chdir(dirname)
                 # get config source -- 'b' is a no-op under 2.x, while 'U' is
                 # ignored under 3.x (but 3.x compile() accepts \r\n newlines)
-                f = open(config_file, 'rbU')
+                f = open(filename, 'rbU')
                 try:
                     source = f.read()
                 finally: