def exportProfileAsZipFile(abridgedSettings, suffixDirectoryPath, suffixFileNameWithoutExtension):
 if (len(abridgedSettings) < 1):
  print 'Warning, the synopsis zip file could not be generated because there are no setting comments in the file.'
  return
 suffixFileName = (suffixFileNameWithoutExtension + 'zip')
 abridgedSettingsDictionary = {}
 for abridgedSetting in abridgedSettings:
  euclidean.addElementToListDictionary(abridgedSetting, abridgedSetting.procedure, abridgedSettingsDictionary)
 abridgedSettingFileNamePaths = []
 for abridgedSettingsKey in abridgedSettingsDictionary:
  abridgedSettings = abridgedSettingsDictionary[abridgedSettingsKey]
  repositoryWriter = settings.getRepositoryWriter(abridgedSettingsKey)
  addAbridgedSettings(abridgedSettings, repositoryWriter)
  abridgedSettingFileNamePath = FileNamePath(suffixDirectoryPath, (abridgedSettingsKey + '.csv'))
  abridgedSettingFileNamePaths.append(abridgedSettingFileNamePath)
  archive.writeFileText(abridgedSettingFileNamePath.path, repositoryWriter.getvalue())
 time.sleep(0.2)
 zipArchive = zipfile.ZipFile(suffixFileName, 'w', compression=zipfile.ZIP_DEFLATED)
 for abridgedSettingFileNamePath in abridgedSettingFileNamePaths:
  zipArchive.write(abridgedSettingFileNamePath.path, abridgedSettingFileNamePath.fileName)
 zipArchive.close()
 time.sleep(0.2)
 for abridgedSettingFileNamePath in abridgedSettingFileNamePaths:
  os.remove(abridgedSettingFileNamePath.path)
 print ('The synopsis zip file is saved as ' + archive.getSummarizedFileName(suffixFileName))

def exportProfileAsZipFile ( abridgedSettings , suffixDirectoryPath , suffixFileNameWithoutExtension ) : if ( len ( abridgedSettings ) < 1 ) : print 'Warning, the synopsis zip file could not be generated because there are no setting comments in the file.' return suffixFileName = ( suffixFileNameWithoutExtension + 'zip' ) abridgedSettingsDictionary = { } for abridgedSetting in abridgedSettings : euclidean . addElementToListDictionary ( abridgedSetting , abridgedSetting . procedure , abridgedSettingsDictionary ) abridgedSettingFileNamePaths = [ ] for abridgedSettingsKey in abridgedSettingsDictionary : abridgedSettings = abridgedSettingsDictionary [ abridgedSettingsKey ] repositoryWriter = settings . getRepositoryWriter ( abridgedSettingsKey ) addAbridgedSettings ( abridgedSettings , repositoryWriter ) abridgedSettingFileNamePath = FileNamePath ( suffixDirectoryPath , ( abridgedSettingsKey + '.csv' ) ) abridgedSettingFileNamePaths . append ( abridgedSettingFileNamePath ) archive . writeFileText ( abridgedSettingFileNamePath . path , repositoryWriter . getvalue ( ) ) time . sleep ( 0.2 ) zipArchive = zipfile . ZipFile ( suffixFileName , 'w' , compression = zipfile . ZIP_DEFLATED ) for abridgedSettingFileNamePath in abridgedSettingFileNamePaths : zipArchive . write ( abridgedSettingFileNamePath . path , abridgedSettingFileNamePath . fileName ) zipArchive . close ( ) time . sleep ( 0.2 ) for abridgedSettingFileNamePath in abridgedSettingFileNamePaths : os . remove ( abridgedSettingFileNamePath . path ) print ( 'The synopsis zip file is saved as ' + archive . getSummarizedFileName ( suffixFileName ) )
export the profile from the gcode text as a zip file .