diff --git a/tconfpy.py b/tconfpy.py index 5cdc1ec..5171239 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.133 2004/03/24 09:56:05 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.134 2004/03/24 10:08:33 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -765,8 +765,19 @@ else: d = VarDescriptor() - d.Value = r - SymTable[l] = d + + # If this is a newly defined variable, set its + # default to be this first value assigned and + # create the new entry + + if l not in SymTable: + d.Default = r + d.Value = r + SymTable[l] = d + + # Otherwise, update an existing entry + + SymTable[l].Value = r ##### # Line Format Is Not In One Of The Recognized Forms - Syntax Error