[Sugar-devel] Screen Displays (text)

Raul Gutierrez Segales rgs at rieder.net.py
Fri Aug 14 19:35:17 EDT 2009


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.. 






More information about the Sugar-devel mailing list