Fixed bug in include file processing - line is now parsed with shlex.split().
1 parent 3af666d commit d742237af6c963ada4952041e7ccb7eb094ecc12
@tundra tundra authored on 10 Aug 2010
Showing 1 changed file
View
5
tren.py
PROGNAME = "tren.py"
BASENAME = PROGNAME.split(".py")[0]
PROGENV = BASENAME.upper()
INCLENV = PROGENV + "INCL"
RCSID = "$Id: tren.py,v 1.218 2010/06/25 22:39:46 tundra Exp $"
RCSID = "$Id: tren.py,v 1.219 2010/08/10 13:27:02 tundra Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
import glob
import os
import random
import re
import shlex
from stat import *
import sys
import time
 
n = []
f = open(inclfile)
for line in f.readlines():
line = line.split(COMMENT)[0]
n += line.split()
n += shlex.split(line)
f.close()
 
# Keep track of the filenames being included for debug output