def getChainText(fileName, procedure):
 text = ''
 if (fileName.endswith('.gcode') or fileName.endswith('.svg')):
  text = archive.getFileText(fileName)
 procedures = getProcedures(procedure, text)
 return getChainTextFromProcedures(fileName, procedures, text)

def getChainText ( fileName , procedure ) : text = '' if ( fileName . endswith ( '.gcode' ) or fileName . endswith ( '.svg' ) ) : text = archive . getFileText ( fileName ) procedures = getProcedures ( procedure , text ) return getChainTextFromProcedures ( fileName , procedures , text )
get a crafted shape file .