Process .py files in subdirectories './setup genplot' #391 (alsroot)

This commit is contained in:
Simon Schampijer 2009-02-27 12:46:45 +01:00
parent 7d69328162
commit 6f210f0e33

View File

@ -333,10 +333,10 @@ def cmd_genpot(config, args):
os.mkdir(po_path)
python_files = []
for root_dummy, dirs_dummy, files in os.walk(config.source_dir):
for root, dirs_dummy, files in os.walk(config.source_dir):
for file_name in files:
if file_name.endswith('.py'):
python_files.append(file_name)
python_files.append(os.path.join(root, file_name))
# First write out a stub .pot file containing just the translated
# activity name, then have xgettext merge the rest of the