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

4. The webstats.py file: Prologue

Here is the beginning of the actual code for webstats.py. It starts with the usual Unix “pound-bang line” that makes the script self-executing.

webstats.py
#!/usr/bin/env python
#================================================================
# webstats.py:  NM Tech Computer Center web statistics
#
# For documentation, see:
#   http://www.nmt.edu/tcc/projects/tccwebstats/       Specification
#   http://www.nmt.edu/tcc/projects/tccwebstats/ims/   Internals
#----------------------------------------------------------------

PRODUCT_NAME      =  "tccwebstats"
EXTERNAL_VERSION  =  "4.0"
DATE_FORMAT       =  "%Y-%m-%dT%H:%M:%S %z"