def sync_languages():
 with open(frappe.get_app_path(u'frappe', u'geo', u'languages.json'), u'r') as f:
  data = json.loads(f.read())
 for l in data:
  if (not frappe.db.exists(u'Language', l[u'code'])):
   frappe.get_doc({u'doctype': u'Language', u'language_code': l[u'code'], u'language_name': l[u'name']}).insert()

def sync_languages ( ) : with open ( frappe . get_app_path ( u'frappe' , u'geo' , u'languages.json' ) , u'r' ) as f : data = json . loads ( f . read ( ) ) for l in data : if ( not frappe . db . exists ( u'Language' , l [ u'code' ] ) ) : frappe . get_doc ( { u'doctype' : u'Language' , u'language_code' : l [ u'code' ] , u'language_name' : l [ u'name' ] } ) . insert ( )
sync frappe/geo/languages .