summaryrefslogtreecommitdiffstats
path: root/src/doc/html/ipcalc_c.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/html/ipcalc_c.html')
0 files changed, 0 insertions, 0 deletions
an> /path/to/walk/and/fix' %sys.argv[0] sys.exit(1) def visit(arg, d, files): for filen in files: if not (filen.endswith('.pyc') or filen.endswith('.pyo')): continue path = os.sep.join((d, filen)) #print 'fixing mtime', path f = open(path, 'r+') f.seek(4) f.write('\0\0\0\0') f.close() if __name__ == '__main__': (args, extra) = getopt.getopt(sys.argv[1:], '', "debug") if len(extra) < 1: usage() for arg in args: if arg == "--debug": debug = 1 dir = extra[0] if not os.path.isdir(dir): usage() os.path.walk(dir, visit, None)