From 6f210f0e33786570fcdb8235a41c2f9009e78576 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Fri, 27 Feb 2009 12:46:45 +0100 Subject: [PATCH] Process .py files in subdirectories './setup genplot' #391 (alsroot) --- src/sugar/activity/bundlebuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py index ab3679bf..71da0df7 100644 --- a/src/sugar/activity/bundlebuilder.py +++ b/src/sugar/activity/bundlebuilder.py @@ -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