Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 22016:f2cf8824040b
removed support for legacy mx/commands.py file
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 17 Jun 2015 13:18:49 +0200 |
parents | 416e4e9d70fa |
children | 11ed27b2abe8 |
comparison
equal
deleted
inserted
replaced
22015:7645c463fb65 | 22016:f2cf8824040b |
---|---|
1177 else: | 1177 else: |
1178 return None | 1178 return None |
1179 | 1179 |
1180 def _load_commands(self): | 1180 def _load_commands(self): |
1181 commandsName = self._find_commands(self._commands_name()) | 1181 commandsName = self._find_commands(self._commands_name()) |
1182 if commandsName is None: | |
1183 # backwards compatibility | |
1184 commandsName = self._find_commands('commands') | |
1185 if commandsName is not None: | 1182 if commandsName is not None: |
1186 if commandsName in sys.modules: | 1183 if commandsName in sys.modules: |
1187 abort(commandsName + '.py in suite ' + self.name + ' duplicates ' + sys.modules[commandsName].__file__) | 1184 abort(commandsName + '.py in suite ' + self.name + ' duplicates ' + sys.modules[commandsName].__file__) |
1188 # temporarily extend the Python path | 1185 # temporarily extend the Python path |
1189 sys.path.insert(0, self.mxDir) | 1186 sys.path.insert(0, self.mxDir) |