diff options
author | Simon Schampijer <simon@schampijer.de> | 2011-02-12 19:07:46 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-02-12 19:12:43 (GMT) |
commit | b30bc0151c357f0e60eb92c934daa56ca28d2df0 (patch) | |
tree | 60d72e7910ca5b16b96bcf06922d74c8b9292c5a | |
parent | 6a4966f4ced808eca6e3c18aeb015a34478a43a3 (diff) |
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>
-rw-r--r-- | src/sugar/activity/bundlebuilder.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |