def plugin_pack(app, plugin_name, request):
 try:
  filename = apath(('../deposit/web2py.plugin.%s.w2p' % plugin_name), request)
  w2p_pack_plugin(filename, apath(app, request), plugin_name)
  return filename
 except Exception:
  return False

def plugin_pack ( app , plugin_name , request ) : try : filename = apath ( ( '../deposit/web2py.plugin.%s.w2p' % plugin_name ) , request ) w2p_pack_plugin ( filename , apath ( app , request ) , plugin_name ) return filename except Exception : return False
builds a w2p package for the plugin args: app: application name plugin_name: the name of the plugin without plugin_ prefix request: the current request app returns: filename of the w2p file or false on error .