def get_sw_login_version():
 return '-'.join(get_sw_version(strip_build_num=True).split('-')[1:(-2)])

def get_sw_login_version ( ) : return '-' . join ( get_sw_version ( strip_build_num = True ) . split ( '-' ) [ 1 : ( - 2 ) ] )
return a shortened version string .