def pycryptodome_filename(dir_comps, filename):
 if (dir_comps[0] != 'Cryptodome'):
  raise ValueError("Only available for modules under 'Cryptodome'")
 dir_comps = (list(dir_comps[1:]) + [filename])
 (util_lib, _) = os.path.split(os.path.abspath(__file__))
 root_lib = os.path.join(util_lib, '..')
 return os.path.join(root_lib, *dir_comps)

def pycryptodome_filename ( dir_comps , filename ) : if ( dir_comps [ 0 ] != 'Cryptodome' ) : raise ValueError ( "Only available for modules under 'Cryptodome'" ) dir_comps = ( list ( dir_comps [ 1 : ] ) + [ filename ] ) ( util_lib , _ ) = os . path . split ( os . path . abspath ( __file__ ) ) root_lib = os . path . join ( util_lib , '..' ) return os . path . join ( root_lib , * dir_comps )
return the complete file name for the module dir_comps : list of string the list of directory names in the pycryptodome package .