Wildcards in POTFILES.in

Bug #503026 reported by Siegfried Gevatter on 2010-01-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Please make it possible to use wildcards in POTFILES.in (or a new file which would generate POTFILES.in), eg.:


Siegfried Gevatter (rainct) wrote :

Until (/If) this is implemented, I'm using the following hack to achieve this:

from __future__ import with_statement
import os
from glob import glob

if __name__ == "__main__":
    """ Generate POTFILES.in from POTFILES.in.in. """
    if os.path.isfile("po/POTFILES.in.in"):
        lines = []
        with open("po/POTFILES.in.in") as f:
            for line in f:
        with open("po/POTFILES.in", "w") as f:
            f.write("\n".join(lines) + "\n")

Listing it here in case it's useful to somebody.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers