Process .py files in subdirectories './setup genplot' #391 (alsroot)
This commit is contained in:
parent
7d69328162
commit
6f210f0e33
@ -333,10 +333,10 @@ def cmd_genpot(config, args):
|
|||||||
os.mkdir(po_path)
|
os.mkdir(po_path)
|
||||||
|
|
||||||
python_files = []
|
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:
|
for file_name in files:
|
||||||
if file_name.endswith('.py'):
|
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
|
# First write out a stub .pot file containing just the translated
|
||||||
# activity name, then have xgettext merge the rest of the
|
# activity name, then have xgettext merge the rest of the
|
||||||
|
Loading…
Reference in New Issue
Block a user