How to use the sasl.enums.enums_generator.enum_file_loader function in sasl

To help you get started, we’ve selected a few sasl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wuye9036 / SalviaRenderer / sasl / enums / enums_generator.py View on Github external
def _generate_file(self, file):
		codes = enum_file_loader( file ).enum_codes
		
		if not os.path.exists( self.config_.header_folder ):
			os.mkdir( self.config_.header_folder )
		
		if not os.path.exists( self.config_.src_folder ):
			os.mkdir( self.config_.src_folder )
		
		header_files = ""
		source_files = ""
		
		for (enum_name, enum_codes) in codes.iteritems():
			print(enum_name + " calculated.")
			
			header_file_name = enum_name+".h"
			source_file_name = enum_name+".cpp"