diff --git a/tconfpy.py b/tconfpy.py index e90aa33..c3fc7c2 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.182 2004/04/27 01:54:04 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.183 2004/04/27 22:21:30 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -425,6 +425,7 @@ Templates={}, TemplatesOnly={}, LiteralVars=False, + ReturnPredefs=True, Debug=False): global DebugMsgs, ErrMsgs, WarnMsgs, LiteralLines @@ -570,6 +571,15 @@ if DEBUG: DebugMsg("dNUMLINES", (cfgfile, TotalLines)) + # Strip out Prefefined Variables if user does not want them + + if not ReturnPredefs: + + del SymTable[NAMESPACE] + for sym in Predefined: + del SymTable[sym] + + retobj.SymTable = SymTable retobj.Errors = ErrMsgs retobj.Warnings = WarnMsgs