⇨ MENU ⇨ MODULES ⇨ os.path

os.path.splitext ( )