| |
---|
| | |
---|
| | # Program Information |
---|
| | |
---|
| | PROGNAME = "tconfpy" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.164 2004/04/08 15:51:26 tundra Exp $" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.165 2004/04/08 17:11:09 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | #----------------------------------------------------------# |
---|
| | # Public API To Module # |
---|
| | #----------------------------------------------------------# |
---|
| | |
---|
| | def ParseConfig(cfgfile, InitialSymTbl={}, AllowNewVars=True, AllowNewNamespaces=True, Debug=False, LiteralVars=False): |
---|
| | def ParseConfig(cfgfile, InitialSymTable={}, AllowNewVars=True, AllowNewNamespaces=True, Debug=False, LiteralVars=False): |
---|
| | |
---|
| | global DebugMsgs, ErrMsgs, WarnMsgs, LiteralLines |
---|
| | global CondStack, ALLOWNEWVAR, ALLOWNEWNS, DEBUG, SymTable, TotalLines, LITERALVARS, INLITERAL |
---|
| | |
---|
| |
---|
| | |
---|
| | # Add any passed symbols to the SymbolTable |
---|
| | |
---|
| | deserror = False |
---|
| | for sym in InitialSymTbl: |
---|
| | |
---|
| | des = InitialSymTbl[sym] |
---|
| | for sym in InitialSymTable: |
---|
| | |
---|
| | des = InitialSymTable[sym] |
---|
| | |
---|
| | # Make sure a valid descriptor was passed for each variable |
---|
| | |
---|
| | desok = True |
---|
| |
---|
| | |