The PIL.WalImageFile Module

open(filename) [#]

Load texture from a Quake2 WAL texture file.

By default, a Quake2 standard palette is attached to the texture. To override the palette, use the putpalette method.

filename
WAL file name, or an opened file handle.
Returns:
An image instance.