Ticket #1183 (new enhancement)
add function to detect if we are running on a XO
| Reported by: | tomeu | Owned by: | erikos |
|---|---|---|---|
| Priority: | High | Milestone: | 0.90 |
| Component: | sugar-toolkit | Version: | Unspecified |
| Severity: | Minor | Keywords: | |
| Cc: | sascha_silbe | Distribution/OS: | Unspecified |
| Bug Status: | Assigned |
Description
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..
Change History
Note: See
TracTickets for help on using
tickets.
