def getfullnameof(mod, xtrapath=None):
 from distutils.sysconfig import get_python_lib
 numpy_core_paths = [os.path.join(get_python_lib(), 'numpy', 'core')]
 if is_venv:
  numpy_core_paths.append(os.path.join(base_prefix, 'Lib', 'site-packages', 'numpy', 'core'))
 epath = ((sys.path + numpy_core_paths) + winutils.get_system_path())
 if (xtrapath is not None):
  if (type(xtrapath) == type('')):
   epath.insert(0, xtrapath)
  else:
   epath = (xtrapath + epath)
 for p in epath:
  npth = os.path.join(p, mod)
  if (os.path.exists(npth) and matchDLLArch(npth)):
   return npth
  for p in epath:
   npth = os.path.join(p, mod.lower())
   if (os.path.exists(npth) and matchDLLArch(npth)):
    return npth
 return ''

def getfullnameof ( mod , xtrapath = None ) : from distutils . sysconfig import get_python_lib numpy_core_paths = [ os . path . join ( get_python_lib ( ) , 'numpy' , 'core' ) ] if is_venv : numpy_core_paths . append ( os . path . join ( base_prefix , 'Lib' , 'site-packages' , 'numpy' , 'core' ) ) epath = ( ( sys . path + numpy_core_paths ) + winutils . get_system_path ( ) ) if ( xtrapath is not None ) : if ( type ( xtrapath ) == type ( '' ) ) : epath . insert ( 0 , xtrapath ) else : epath = ( xtrapath + epath ) for p in epath : npth = os . path . join ( p , mod ) if ( os . path . exists ( npth ) and matchDLLArch ( npth ) ) : return npth for p in epath : npth = os . path . join ( p , mod . lower ( ) ) if ( os . path . exists ( npth ) and matchDLLArch ( npth ) ) : return npth return ''
return the full path name of mod .