import pathlib


def get_base_name(pathname):
	"""from a complete file name return the first part, without any ext"""
	#name = path.splitext(pathname)[0] # work only if not more than 1 .ext
	name = pathlib.Path(pathname)
	while name.suffixes :
		name= pathlib.Path(name.stem)
	name=name.stem
	return name