[Bugs] #1183 UNSP: add function to detect if we are running on a XO

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Sat Aug 15 05:07:13 EDT 2009


#1183: add function to detect if we are running on a XO
------------------------------------------+---------------------------------
    Reporter:  tomeu                      |          Owner:  erikos                     
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  sugar-toolkit              |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 {{{
 On Fri, 2009-08-14 at 17:28 -0400, Walter Bender wrote:
 > I determine whether or not I am on an XO with:
 >
 >     if os.path.exists('/sys/power/olpc-pm'): # then assume you are on an
 XO
 >

 Shouldn't we encapsulate this method (is_xo?()) somewhere? I've seen it
 spread in a couple of places so far..
 }}}

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


More information about the Bugs mailing list