International APPs / pygettext

Martin v. Loewis martin at v.loewis.de
Wed Oct 16 22:02:02 EDT 2002


Ingo Linkweiler <i.linkweiler at web.de> writes:

> > Did you try "pygettext.py -d langtest *.py"?
> 
> same result:
> File "C:\python22\tools\i18n\pygettext.py", line 509, in main
> fp = open(filename)
> IOError: [Errno 2] No such file or directory: '*.py'
> 
> It seems there are no wildcards allowed. How can I get one .pot-file
> from many .py-files?

Ah, I see. Windows. You need to list all files explicitly on the
command line. Alternatively, get a shell that does wildcard expansion,
or extend pygettext.py to do wildcard expansion, or use Unix.

Regards,
Martin



More information about the Python-list mailing list