| | #!/usr/bin/env python |
---|
| | # tconfpy.py |
---|
| | # Copyright (c) 2003 TundraWare Inc. All Rights Reserved. |
---|
| | # For Updates See: http://www.tundraware.com/Software/tconfpy |
---|
| | |
---|
| | # Program Information |
---|
| | |
---|
| | PROGNAME = "tconfpy" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.0 2003/12/13 01:00:28 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| | CPRT = chr(169) |
---|
| | DATE = "2003-2004" |
---|
| | OWNER = "TundraWare Inc." |
---|
| | RIGHTS = "All Rights Reserved" |
---|
| | COPYRIGHT = "Copyright %s %s %s %s. " % (CPRT, DATE, OWNER, RIGHTS) |
---|
| | PROGINFO = PROGNAME + " " + VERSION |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Variables User Might Change # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | |
---|
| | #------------------- Nothing Below Here Should Need Changing ------------------# |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Imports # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | import os.path |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Aliases & Redefinitions # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Constants & Literals # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Constants |
---|
| | ##### |
---|
| | |
---|
| | FALSE = 0 == 1 # Booleans |
---|
| | TRUE = not FALSE |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Literals |
---|
| | ##### |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Prompts, & Application Strings # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Error Messages |
---|
| | ##### |
---|
| | |
---|
| | eERROR = "ERROR" |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Informational Messages |
---|
| | ##### |
---|
| | |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Prompts |
---|
| | ##### |
---|
| | |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Global Variables & Data Structures # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | |
---|
| | #--------------------------- Code Begins Here ---------------------------------# |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Object Base Class Definitions # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Supporting Function Definitions # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Print An Error Message |
---|
| | ##### |
---|
| | |
---|
| | def errmsg(emsg): |
---|
| | print PROGINFO + " " + eERROR + ": " + emsg |
---|
| | |
---|
| | # End of 'errmsg()' |
---|
| | |
---|
| | |
---|
| | ##### |
---|
| | # Run This When Directly Invoked Instead Of Imported |
---|
| | ##### |
---|
| | |
---|
| | def direct(): |
---|
| | print PROGINFO |
---|
| | print COPYRIGHT |
---|
| | errmsg("Test Error Message Function") |
---|
| | |
---|
| | |
---|
| | #----------------------------------------------------------# |
---|
| | # Entry Point # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | if __name__ == '__main__': |
---|
| | direct() |
---|
| | |
---|
| | |