<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getProjectDescriptor(self, dir):
 		""" 		Detects the .uproject descriptor file for the Unreal project in the specified directory 		"""

		for project in glob.glob(os.path.join(dir, '*.uproject')):
			return os.path.realpath(project)
		
		# No project detected
		raise UnrealManagerException('could not detect an Unreal project in the current directory')