def is_sevenfile(path):
 return (SEVEN_COMMAND and (os.path.splitext(path)[1].lower() == '.7z'))

def is_sevenfile ( path ) : return ( SEVEN_COMMAND and ( os . path . splitext ( path ) [ 1 ] . lower ( ) == '.7z' ) )
return true if path has proper extension and 7zip is installed .