[Bugs] #494 UNSP: Python exec dir is hardcoded

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Mon Mar 9 08:54:11 EDT 2009


#494: Python exec dir is hardcoded
------------------------------------------+---------------------------------
    Reporter:  sadam                      |          Owner:  tomeu                      
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar                      |        Version:  Git as of bugdate          
    Severity:  Blocker                    |     Resolution:                             
    Keywords:                             |   Distribution:  Unspecified                
Status_field:  Unconfimed                 |  
------------------------------------------+---------------------------------

Comment(by tomeu):

 Can you check if this works?

 {{{
 diff --git a/sjhbuild/config.py b/sjhbuild/config.py
 index 4efe4e6..285442b 100644
 --- a/sjhbuild/config.py
 +++ b/sjhbuild/config.py
 @@ -65,7 +65,7 @@ class Config(jhbuild.config.Config):
                                        'site-packages', 'gtk-2.0')
          jhbuild.config.addpath('PYTHONPATH', pythonpath)

 -        python_lib = os.path.join(self.prefix, 'lib', 'python2.5', 'site-
 packages')
 +        python_lib = os.path.join(self.prefix, 'lib', pythonversion,
 'site-packages')
          os.environ['PYTHON_LIB'] = python_lib

          if 'DBUS_SESSION_BUS_ADDRESS' in os.environ:
 }}}

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/494#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list