#Same as last Script but prepared to be installed add-on
bl_info = {
	"name": "White Opener",
	"category": "Object",
}

import bpy  
 
class WhitePawnOpener(bpy.types.Operator): 
    """White Pawn Opener"""  #Blender uses this as tool-tip
    bl_idname = "object.whitepawnopener_operator"  
    bl_label = "White Pawn Opener"
    bl_options = {'REGISTER', 'UNDO'}
  
    def execute(self, context):  
        context.active_object.location.y += 5.50  
        return {'FINISHED'}  
  
def add_object_button(self, context):  
    self.layout.operator(  
        WhitePawnOpener.bl_idname,  
        text=WhitePawnOpener.__doc__,  
        icon='PLUGIN')  
  
def register():  
    bpy.utils.register_class(WhitePawnOpener)
    bpy.types.VIEW3D_MT_object.append(add_object_button)

def unregister():
    bpy.utils.unregister_class(WhitePawnOpener)
	
if __name__ == "__main__":  
    register()