| |
---|
| | |
---|
| | # Program Information |
---|
| | |
---|
| | PROGNAME = "tconfpy" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.173 2004/04/14 22:18:39 tundra Exp $" |
---|
| | RCSID = "$Id: tconfpy.py,v 1.174 2004/04/14 22:46:24 tundra Exp $" |
---|
| | VERSION = RCSID.split()[2] |
---|
| | |
---|
| | # Copyright Information |
---|
| | |
---|
| |
---|
| | SymTable[NAMESPACE] = VarDescriptor() |
---|
| | SymTable[NAMESPACE].Value = "" |
---|
| | SymTable[NAMESPACE].LegalVals.append("") |
---|
| | |
---|
| | # Make sure that initial namespace is also present in LegalVals |
---|
| | else: |
---|
| | |
---|
| | initialns = SymTable[NAMESPACE].Value |
---|
| | |
---|
| | if initialns not in SymTable[NAMESPACE].LegalVals: |
---|
| | SymTable[NAMESPACE].LegalVals.append(initialns) |
---|
| | # Ensure that the initial namespace is properly formed. |
---|
| | # If not, revert to root namespace. |
---|
| | |
---|
| | if not ValidateSymbolName(SymTable[NAMESPACE].Value, STARTUP, STARTUP, AllowEmpty=True): |
---|
| | SymTable[NAMESPACE].Value = "" |
---|
| | |
---|
| | # Make sure initial namespace is in LegalVals |
---|
| | |
---|
| | initialns = SymTable[NAMESPACE].Value |
---|
| | |
---|
| | if initialns not in SymTable[NAMESPACE].LegalVals: |
---|
| | SymTable[NAMESPACE].LegalVals.append(initialns) |
---|
| | |
---|
| | # Report namespace to debug output |
---|
| | |
---|
| | if DEBUG: |
---|
| |
---|
| | |