[Sugar-devel] [PATCH] make 'setup.py genpot' produce a pot without a full path in filenames #2508

Simon Schampijer simon at schampijer.de
Fri Nov 26 10:22:52 EST 2010


---
 src/sugar/activity/bundlebuilder.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py
index 2c6aff2..c3f7649 100644
--- a/src/sugar/activity/bundlebuilder.py
+++ b/src/sugar/activity/bundlebuilder.py
@@ -362,7 +362,7 @@ def cmd_genpot(config, args):
     for root, dirs_dummy, files in os.walk(config.source_dir):
         for file_name in files:
             if file_name.endswith('.py'):
-                python_files.append(os.path.join(root, file_name))
+                python_files.append(file_name)
 
     # First write out a stub .pot file containing just the translated
     # activity name, then have xgettext merge the rest of the
-- 
1.7.2.3



More information about the Sugar-devel mailing list