#2508 closed defect (obsolete)
./setup.py genpot creates absolute paths
| Reported by: | erikos | Owned by: | erikos |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | |
| Component: | Sugar | Version: | 0.90.x |
| Severity: | Major | Keywords: | |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | Assigned |
Description
The generated pot file does include:
#: AbiWordActivity.py:64 +#: /home/erikos/sugar-jhbuild/source/write/AbiWordActivity.py:70
This patch fixes it:
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
Change History (3)
comment:1 Changed 10 years ago by dnarvaez
- Component changed from sugar-toolkit to Sugar
comment:2 Changed 10 years ago by dnarvaez
- Resolution set to obsolete
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
That code is different now.