diff --git a/tconfpy.py b/tconfpy.py index 2e4eba1..f1e263d 100755 --- a/tconfpy.py +++ b/tconfpy.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "tconfpy" -RCSID = "$Id: tconfpy.py,v 1.123 2004/03/20 00:02:09 tundra Exp $" +RCSID = "$Id: tconfpy.py,v 1.124 2004/03/20 01:04:36 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -680,9 +680,23 @@ # definition/assignment. elif EQUAL in line: + + # Do any necessary variable dereferencing line, ref_ok = DerefVar(line, cfgfile, linenum) + # Only do this if all var references were valid + if ref_ok: + + # Get left and right sides of the assignment + e = line.index(EQUAL) + l = line[:e].strip() + r = line[e+1:].strip() + # Construct the entry and load it into the symbol table + d = VarDescriptor() + d.Value = r + SymTable[l] = d + ##### # Line Format Is Not In One Of The Recognized Forms - Syntax Error #####