From b30bc0151c357f0e60eb92c934daa56ca28d2df0 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Sat, 12 Feb 2011 19:07:46 +0000 Subject: bundlebuilder: genpot: don't use absolute paths in filenames (SL#2508) [tweaked description; minor style fix] Signed-off-by: Sascha Silbe Tested-By: Sascha Silbe Reviewed-By: Sascha Silbe --- diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py index 2c6aff2..5885a35 100644 --- a/src/sugar/activity/bundlebuilder.py +++ b/src/sugar/activity/bundlebuilder.py @@ -362,7 +362,9 @@ 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)) + file_path = os.path.relpath(os.path.join(root, file_name), + config.source_dir) + python_files.append(file_path) # First write out a stub .pot file containing just the translated # activity name, then have xgettext merge the rest of the -- cgit v0.9.1