[Sugar-devel] [PATCH] make 'setup.py genpot' produce a pot without a full path in filenames #2508

Gonzalo Odiard gonzalo at laptop.org
Fri Nov 26 10:30:10 EST 2010


Reviewed and Tested: "Gonzalo Odiard" <gonzalo at laptop.org>,

On Fri, Nov 26, 2010 at 12:22 PM, Simon Schampijer <simon at schampijer.de>wrote:

> ---
>  src/sugar/activity/bundlebuilder.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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
> --
> 1.7.2.3
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101126/6f79daff/attachment-0001.html>


More information about the Sugar-devel mailing list