5 def mungepothead(file):
7 Change POT header to avoid annoying timestamp mismatch
10 mungefile = open(file)
11 for line in mungefile:
12 line = re.sub(r'^("POT-Creation-Date: ).+"$', r'\1', line)
16 # Write the changed lines back out
17 mungefile = open(file, 'w')
23 sys.path.append(os.path.join(self.basedir, '../scripts/'))
24 sys.path.append(self.basedir)
26 for dir in self.tmpdirs:
30 for dir in self.tmpdirs:
31 if os.access(dir, os.F_OK):
32 for file in os.listdir(dir):
33 os.remove(os.path.join(dir, file))