Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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"