def find_xontrib(name):
 if name.startswith('.'):
  spec = importlib.util.find_spec(name, package='xontrib')
 else:
  spec = importlib.util.find_spec(('.' + name), package='xontrib')
 return (spec or importlib.util.find_spec(name))

def find_xontrib ( name ) : if name . startswith ( '.' ) : spec = importlib . util . find_spec ( name , package = 'xontrib' ) else : spec = importlib . util . find_spec ( ( '.' + name ) , package = 'xontrib' ) return ( spec or importlib . util . find_spec ( name ) )
finds a xontribution from its name .