def file_ns_handler(importer, path_item, packageName, module):
 subpath = os.path.join(path_item, packageName.split('.')[(-1)])
 normalized = _normalize_cached(subpath)
 for item in module.__path__:
  if (_normalize_cached(item) == normalized):
   break
 else:
  return subpath

def file_ns_handler ( importer , path_item , packageName , module ) : subpath = os . path . join ( path_item , packageName . split ( '.' ) [ ( - 1 ) ] ) normalized = _normalize_cached ( subpath ) for item in module . __path__ : if ( _normalize_cached ( item ) == normalized ) : break else : return subpath
compute an ns-package subpath for a filesystem or zipfile importer .