def getFontPaths(path):
	fontsList = []
	instancesFile = None
	for file in os.listdir(path):
		if file[-4:].lower() in [".ufo"]:
			fontsList.append(os.path.join(path, file))
		elif file[-len(kInstancesDataFileName):] == kInstancesDataFileName:
			instancesFile = os.path.join(path, file)
	return fontsList, instancesFile
dataset/ETHPy150Open adobe-type-tools/python-scripts/UFOInstanceGenerator.py/getFontPaths/original