def export_doc(doctype, name, module=None):
 from frappe.modules.export_file import write_document_file
 print doctype, name
 if (not module):
  module = frappe.db.get_value(u'DocType', name, u'module')
 write_document_file(frappe.get_doc(doctype, name), module)

def export_doc ( doctype , name , module = None ) : from frappe . modules . export_file import write_document_file print doctype , name if ( not module ) : module = frappe . db . get_value ( u'DocType' , name , u'module' ) write_document_file ( frappe . get_doc ( doctype , name ) , module )
write a doc to standard path .