[Bugs] #2508 UNSP: ./setup.py genpot creates absolute paths

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Fri Nov 26 10:19:33 EST 2010


#2508: ./setup.py genpot creates absolute paths
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos     
        Type:  defect                     |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.90       
   Component:  sugar-toolkit              |        Version:  0.90.x     
    Severity:  Major                      |       Keywords:             
Status_field:  Assigned                   |   Distribution:  Unspecified
   Seeta_dev:                             |  
------------------------------------------+---------------------------------
 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
 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2508>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list