Next / Previous / Contents / TCC Help System / NM Tech homepage

8.1. Module imports

catweb
# - - - - -   I m p o r t s

The sys module is used for retrieving command line arguments.

catweb
import sys

We also need the os module for manipulating path names.

catweb
import os

The xnomo3 module is from xnomo3: A system for representing bird taxonomy. It is used to sort bird types into phylogenetic order.

catweb
import xnomo3

We'll also need the abbr.py module, which contains the BirdId class.

catweb
import abbr as abbrModule

The birdimages module is described in An XML-based image cataloging system. It represents cataloged images.

catweb
import birdimages

The archindex module is described in archx: A program to index a photo archive.

catweb
from archindex import *

The tool we use to generate XHTML is the etbuilder module described in Python XML processing with lxml. The et module is lxml.etree; E is an element factory; CLASS is a function used to attach CSS class elements; subElement is a function for adding child elements; and addText is a function that adds text content to an element.

catweb
from etbuilder import et, E, CLASS, subElement, addText