<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def packagePlugin(self, dir=os.getcwd(), extraArgs=[]):
 		""" 		Packages a build of the Unreal plugin in the specified directory, suitable for use as a prebuilt Engine module 		"""

		
		# Invoke UAT to package the build
		distDir = os.path.join(os.path.abspath(dir), 'dist')
		self.runUAT([
			'BuildPlugin',
			'-Plugin=' + self.getPluginDescriptor(dir),
			'-Package=' + distDir
		] + extraArgs)