def export_module_json(doc, is_standard, module):
 if ((not frappe.flags.in_import) and getattr(frappe.get_conf(), u'developer_mode', 0) and is_standard):
  from frappe.modules.export_file import export_to_files
  from frappe.modules import get_module_path
  export_to_files(record_list=[[doc.doctype, doc.name]], record_module=module)
  path = os.path.join(get_module_path(module), scrub(doc.doctype), scrub(doc.name), scrub(doc.name))
  return path

def export_module_json ( doc , is_standard , module ) : if ( ( not frappe . flags . in_import ) and getattr ( frappe . get_conf ( ) , u'developer_mode' , 0 ) and is_standard ) : from frappe . modules . export_file import export_to_files from frappe . modules import get_module_path export_to_files ( record_list = [ [ doc . doctype , doc . name ] ] , record_module = module ) path = os . path . join ( get_module_path ( module ) , scrub ( doc . doctype ) , scrub ( doc . name ) , scrub ( doc . name ) ) return path
make a folder for the given doc and add its json file .