def exportProfileAsCSVFile(abridgedSettings, suffixFileNameWithoutExtension):
 if (len(abridgedSettings) < 1):
  print 'Warning, the synopsis csv file could not be generated because there are no setting comments in the file.'
  return
 repositoryWriter = settings.getRepositoryWriter('profile')
 suffixFileName = (suffixFileNameWithoutExtension + 'csv')
 for abridgedSetting in abridgedSettings:
  repositoryWriter.write(('%s\n' % abridgedSetting.__repr__()))
 archive.writeFileText(suffixFileName, repositoryWriter.getvalue())
 print ('The synopsis csv file is saved as ' + archive.getSummarizedFileName(suffixFileName))

def exportProfileAsCSVFile ( abridgedSettings , suffixFileNameWithoutExtension ) : if ( len ( abridgedSettings ) < 1 ) : print 'Warning, the synopsis csv file could not be generated because there are no setting comments in the file.' return repositoryWriter = settings . getRepositoryWriter ( 'profile' ) suffixFileName = ( suffixFileNameWithoutExtension + 'csv' ) for abridgedSetting in abridgedSettings : repositoryWriter . write ( ( '%s\n' % abridgedSetting . __repr__ ( ) ) ) archive . writeFileText ( suffixFileName , repositoryWriter . getvalue ( ) ) print ( 'The synopsis csv file is saved as ' + archive . getSummarizedFileName ( suffixFileName ) )
export the profile from the gcode text as a csv file .