#!python """ os.path.splitext(str filePath) -> tuple (str 'file_path', str 'extension') [en] to easy get file extension in python [pl] aby łatwo uzyskać rozszerzenie pliku """ import os print os.path.splitext('/this/is/path/to/my.test.file.txt') # ('/this/is/path/to/my.test.file', '.txt')