All pastes #990827 Raw Edit

Mine

public text v1 · immutable
#990827 ·published 2008-04-20 13:54 UTC
rendered paste body
import os, os.path

path = 'rts/'
excludes = ['rts/lib','rts/build']
ends = ['.cpp']


for root, dirs, files in os.walk(path):
    if any(root.startswith(x) for x in excludes):
        continue
    print '***',root
    for fname in (fn for fn in files if any(fn.endswith(x) for x in ends)):
        f = open(os.path.join(root, fname))
        if any('mmgr.h' in line for line in f):
            continue
        else:
            print fname