def getPathByPrefix(path, prefix, xmlElement):
 if (len(path) < 2):
  print 'Warning, bug, path is too small in evaluate in setPathByPrefix.'
  return
 pathByKey = getPathByKey((prefix + 'path'), xmlElement)
 if (len(pathByKey) < len(path)):
  for pointIndex in xrange(len(pathByKey)):
   path[pointIndex] = pathByKey[pointIndex]
 else:
  path = pathByKey
 path[0] = getVector3ByPrefix(path[0], (prefix + 'pathStart'), xmlElement)
 path[(-1)] = getVector3ByPrefix(path[(-1)], (prefix + 'pathEnd'), xmlElement)
 return path

def getPathByPrefix ( path , prefix , xmlElement ) : if ( len ( path ) < 2 ) : print 'Warning, bug, path is too small in evaluate in setPathByPrefix.' return pathByKey = getPathByKey ( ( prefix + 'path' ) , xmlElement ) if ( len ( pathByKey ) < len ( path ) ) : for pointIndex in xrange ( len ( pathByKey ) ) : path [ pointIndex ] = pathByKey [ pointIndex ] else : path = pathByKey path [ 0 ] = getVector3ByPrefix ( path [ 0 ] , ( prefix + 'pathStart' ) , xmlElement ) path [ ( - 1 ) ] = getVector3ByPrefix ( path [ ( - 1 ) ] , ( prefix + 'pathEnd' ) , xmlElement ) return path
get path from prefix and xml element .