bundlebuilder: genpot: don't use absolute paths in filenames (SL#2508)

[tweaked description; minor style fix]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Tested-By: Sascha Silbe <silbe@activitycentral.com>
Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
This commit is contained in:
Simon Schampijer 2011-02-12 19:07:46 +00:00 committed by Sascha Silbe
parent 6a4966f4ce
commit b30bc0151c

View File

@ -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