diff --git a/twander.py b/twander.py index 0dba1e4..229a203 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.129 2003/03/10 19:36:02 tundra Exp $" +RCSID = "$Id: twander.py,v 3.130 2003/03/10 19:56:00 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -545,12 +545,13 @@ ENVVBL = r'$' # Symbol denoting an environment variable -# Names Of Conditional And Pre-Defined Symbols +# Names Of Conditionals, Directives, And Pre-Defined Symbols CONDENDIF = '.endif' CONDEQUAL = '==' CONDIF = '.if' CONDNOTEQUAL = '!=' +DIRECTINC = '.include' SYMOS = '.OS' SYMPLATFORM = '.PLATFORM' @@ -1240,6 +1241,14 @@ else: ConditionalStack.pop() + ##### + # Process Include Directive + ##### + + elif fields[0] == DIRECTINC: + ReadConfFile(cleanline.split(DIRECTINC)[1].strip()) + + ### # Variable Definitions And Special Assignments ###