def writeChainTextWithNounMessage(fileName, procedure, shouldAnalyze=True):
 print ''
 print ('The %s tool is parsing the file:' % procedure)
 print os.path.basename(fileName)
 print ''
 startTime = time.time()
 fileNameSuffix = (((fileName[:fileName.rfind('.')] + '_') + procedure) + '.gcode')
 craftText = getChainText(fileName, procedure)
 if (craftText == ''):
  print 'Warning, there was no text output in writeChainTextWithNounMessage in skeinforge_craft for:'
  print fileName
  return
 archive.writeFileText(fileNameSuffix, craftText)
 window = None
 if shouldAnalyze:
  window = skeinforge_analyze.writeOutput(fileName, fileNameSuffix, fileNameSuffix, True, craftText)
 print ''
 print ('The %s tool has created the file:' % procedure)
 print fileNameSuffix
 print ''
 print ('It took %s to craft the file.' % euclidean.getDurationString((time.time() - startTime)))
 return window

def writeChainTextWithNounMessage ( fileName , procedure , shouldAnalyze = True ) : print '' print ( 'The %s tool is parsing the file:' % procedure ) print os . path . basename ( fileName ) print '' startTime = time . time ( ) fileNameSuffix = ( ( ( fileName [ : fileName . rfind ( '.' ) ] + '_' ) + procedure ) + '.gcode' ) craftText = getChainText ( fileName , procedure ) if ( craftText == '' ) : print 'Warning, there was no text output in writeChainTextWithNounMessage in skeinforge_craft for:' print fileName return archive . writeFileText ( fileNameSuffix , craftText ) window = None if shouldAnalyze : window = skeinforge_analyze . writeOutput ( fileName , fileNameSuffix , fileNameSuffix , True , craftText ) print '' print ( 'The %s tool has created the file:' % procedure ) print fileNameSuffix print '' print ( 'It took %s to craft the file.' % euclidean . getDurationString ( ( time . time ( ) - startTime ) ) ) return window
get and write a crafted shape file .