def choose_editor():
	if os.environ in 'EDITOR':
		editor =  os.environ['EDITOR']
	else:
		print_error('$EDITOR not set, assuming default of vi.')
		editor = find_executable('vi')
	if not editor:
		die(
"""Error: cannot continue with the current command, because the text
editor could not be found.  Please set your EDITOR environment variable
to the pathname of your preferred editor.
""")
	return editor
dataset/ETHPy150Open CMB/cligh/cligh/utils.py/choose_editor/swapped operands of `in`