def get_user_copy(module_name, user=None):
 if (not user):
  user = frappe.session.user
 desktop_icon_name = frappe.db.get_value(u'Desktop Icon', {u'module_name': module_name, u'owner': user, u'standard': 0})
 if desktop_icon_name:
  return frappe.get_doc(u'Desktop Icon', desktop_icon_name)
 else:
  return make_user_copy(module_name, user)

def get_user_copy ( module_name , user = None ) : if ( not user ) : user = frappe . session . user desktop_icon_name = frappe . db . get_value ( u'Desktop Icon' , { u'module_name' : module_name , u'owner' : user , u'standard' : 0 } ) if desktop_icon_name : return frappe . get_doc ( u'Desktop Icon' , desktop_icon_name ) else : return make_user_copy ( module_name , user )
return user copy of the given module_name .