Index: trunk/tools/editor_trends/configuration.py |
— | — | @@ -97,9 +97,10 @@ |
98 | 98 | self.tab_width = 4 if self.platform == 'Windows' else 8 |
99 | 99 | |
100 | 100 | |
| 101 | + result = self.load_configuration() |
| 102 | + if not result: |
| 103 | + self.input_location = os.path.join(self.root, 'wikimedia') |
101 | 104 | |
102 | | - self.input_location = os.path.join(self.root, 'wikimedia') |
103 | | - self.load_configuration() |
104 | 105 | # Default Input file |
105 | 106 | self.input_filename = os.path.join(self.input_location, 'en', |
106 | 107 | 'wiki', |
— | — | @@ -128,6 +129,9 @@ |
129 | 130 | self.input_location = config.get('file_locations', 'input_location') |
130 | 131 | self.default_project = config.get('wiki', 'project') |
131 | 132 | self.default_language = config.get('wiki', 'language') |
| 133 | + return True |
| 134 | + else: |
| 135 | + return False |
132 | 136 | |
133 | 137 | def determine_working_directory(self): |
134 | 138 | cwd = os.getcwd() |