code: def setEngineRootOverride(self, rootDir):
  		
  				
  		# Set the new root directory
  		ConfigurationManager.setConfigKey('rootDirOverride', os.path.abspath(rootDir))
  		
  		# Check that the specified directory is valid and warn the user if it is not
  		try:
  			self.getEngineVersion()
  		except:
  			print('Warning: the specified directory does not appear to contain a valid version of the Unreal Engine.')
docs: Sets a user-specified directory as the root engine directory, overriding any auto-detection