Fix path to config files
authorFrederic Massart <fred@moodle.com>
Mon, 21 Jul 2014 08:53:10 +0000 (16:53 +0800)
committerFrederic Massart <fred@moodle.com>
Mon, 21 Jul 2014 08:53:10 +0000 (16:53 +0800)
mdk/config.py

index 4c8032a..39afb95 100644 (file)
@@ -227,8 +227,8 @@ class Conf(Config):
             userfile = os.path.expanduser('~/.moodle-sdk/config.json')
         self.userFile = userfile
         files = [
-            os.path.join(os.path.dirname(__file__), '..', 'config-dist.json'),
-            os.path.join(os.path.dirname(__file__), '..', 'config.json'),
+            os.path.join(os.path.dirname(__file__), 'config-dist.json'),
+            os.path.join(os.path.dirname(__file__), 'config.json'),
             '/etc/moodle-sdk/config.json',
             self.userFile,
         ]