def disable(path): ''' Disables a location of models and test cases specified by the path. :param path: A path to a location directory :type path: string ''' path = os.path.abspath(path) for dirname, module in _DIRS_MAP.iteritems(): _removeModuleDir(module, os.path.join(path, dirname)) # Remove a corresponding locale locale.remove(os.path.join(path, _LOCALE_DIR)) _cache[path] = False
def _removeLocaleDir(self, localedir): locale.remove(os.path.abspath(os.path.join(_LOCALES_DIR, localedir)))