def execute():
	frappe.reload_doc("core", "doctype", "print_settings")
	print_settings = frappe.get_doc("Print Settings")
	print_settings.print_style = "Modern"

	try:
		import pdfkit
	except ImportError:
		pass
	else:
		# if someone has already configured in Outgoing Email Settings
		outgoing_email_settings = frappe.db.get_singles_dict("Outgoing Email Settings")
		if outgoing_email_settings in "send_print_as_pdf":
			print_settings.send_print_as_pdf = outgoing_email_settings.send_print_as_pdf
			print_settings.pdf_page_size = outgoing_email_settings.pdf_page_size

		else:
			print_settings.send_print_as_pdf = 1

	print_settings.save()
dataset/ETHPy150Open frappe/frappe/frappe/patches/v4_1/enable_print_as_pdf.py/execute/swapped operands of `in`