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:
parent
6a4966f4ce
commit
b30bc0151c
@ -362,7 +362,9 @@ def cmd_genpot(config, args):
|
|||||||
for root, dirs_dummy, files in os.walk(config.source_dir):
|
for root, dirs_dummy, files in os.walk(config.source_dir):
|
||||||
for file_name in files:
|
for file_name in files:
|
||||||
if file_name.endswith('.py'):
|
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
|
# First write out a stub .pot file containing just the translated
|
||||||
# activity name, then have xgettext merge the rest of the
|
# activity name, then have xgettext merge the rest of the
|
||||||
|
Loading…
Reference in New Issue
Block a user