def resolve_path(somepath):

  if not somepath or somepath == '-':
    return None
  m = noto_re.match(somepath)
  if m:
    base, rest = m.groups()
    if base == 'adobe':
      key = 'adobe_data'
    elif base == 'mti':
      key = 'monotype_data'
    elif base == 'afdko':
      key = 'afdko'
    else:
      key = 'noto_' + base
    if not key in notoconfig.values:
      print 'notoconfig has no entry for %s' % key
      return None
    base = notoconfig.values.get(key)
    while rest.startswith(path.sep):
      rest = rest[len(path.sep):]
    somepath = path.join(base, rest)
  return path.realpath(path.abspath(path.expanduser(somepath)))
.. todo::
dataset/ETHPy150Open googlei18n/nototools/nototools/tool_utils.py/resolve_path--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/preprocessing.py/GlobalContrastNormalization.apply