示例#1
0
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
示例#2
0
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
示例#3
0
 def _removeLocaleDir(self, localedir):
     locale.remove(os.path.abspath(os.path.join(_LOCALES_DIR, localedir)))
示例#4
0
 def _removeLocaleDir(self, localedir):
     locale.remove(os.path.abspath(os.path.join(_LOCALES_DIR, localedir)))