skrf.util.get_extn

skrf.util.get_extn(filename)[source]

Get the extension from a filename.

The extension is defined as everything passed the last ‘.’. Returns None if it ain’t got one

Parameters:filename (string) – the filename
Returns:ext – either the extension (not including ‘.’) or None if there isn’t one
Return type:string, None