sbsv2/raptor/python/raptor_meta.py
branchfix
changeset 571 25e377052d9f
parent 570 971d2c670e06
equal deleted inserted replaced
570:971d2c670e06 571:25e377052d9f
   767 			eiloc="." # Someone building with a relative raptor path
   767 			eiloc="." # Someone building with a relative raptor path
   768 		if biloc is None or biloc == "":
   768 		if biloc is None or biloc == "":
   769 			biloc="." # Someone building with a relative raptor path
   769 			biloc="." # Someone building with a relative raptor path
   770 
   770 
   771 		self.__StandardVariables = {}
   771 		self.__StandardVariables = {}
   772 		# Relative step-down to the root. Amount to env variable SRCROOT 
   772 		# The source root directory is SRCROOT if set in the environment
   773 		# in case SBS_BUILD_DIR is on a different drive 		
   773 		# Set TO_ROOT to SRCROOT in case SBS_BUILD_DIR is on a different drive
   774 		if 'SRCROOT' in os.environ:
   774 		if 'SRCROOT' in os.environ:
   775 			self.__StandardVariables['TO_ROOT'] = str(generic_path.Path(os.environ['SRCROOT']))
   775 			self.__StandardVariables['TO_ROOT'] = str(generic_path.Path(os.environ['SRCROOT']))
   776 		else:
   776 		else:
   777 			self.__StandardVariables['TO_ROOT'] = ""
   777 			self.__StandardVariables['TO_ROOT'] = ""
   778 		
   778 		
   841 		eiloc = str(extInfLocation)
   841 		eiloc = str(extInfLocation)
   842 		if eiloc is None or eiloc == "":
   842 		if eiloc is None or eiloc == "":
   843 			eiloc="." # Someone building with a relative raptor path
   843 			eiloc="." # Someone building with a relative raptor path
   844 
   844 
   845 		self.__StandardVariables = {}
   845 		self.__StandardVariables = {}
   846 		# Relative step-down to the root. Amount to env variable SRCROOT 
   846 		# The source root directory is SRCROOT if set in the environment	
   847 		# in case SBS_BUILD_DIR is on a different drive 		
   847 		# Set TO_ROOT to SRCROOT in case SBS_BUILD_DIR is on a different drive
   848 		if 'SRCROOT' in os.environ:
   848 		if 'SRCROOT' in os.environ:
   849 			self.__StandardVariables['TO_ROOT'] = str(generic_path.Path(os.environ['SRCROOT']))
   849 			self.__StandardVariables['TO_ROOT'] = str(generic_path.Path(os.environ['SRCROOT']))
   850 		else:
   850 		else:
   851 			self.__StandardVariables['TO_ROOT'] = ""
   851 			self.__StandardVariables['TO_ROOT'] = ""
   852 		# Top-level bld.inf location
   852 		# Top-level bld.inf location