importtranslators#importing the main translator class
fromtranslatorsimportCellMLTranslator#again, just to make sure
importCellMLToNektarTranslator#importing the nektar sub-class
#This part actually runs the code
if__name__=='__main__':#this part of the code is only run when CellMLToNektar.py is run directly, not imported
CellMLTranslator.register(CellMLTranslator,'C++')#this registers the main translator and it's name when called as an option in modified_translators
CellMLTranslator.register(CellMLToNektarTranslator.CellMLToNektarTranslator,'Nektar')#this registers the nektar subclass and it's name when called as an option in modified_translators
if'--profile'insys.argv:#sys.argv is the list of command line items passed to the script, this checks if a specific translator is requested