From 4d18e31e99b28ac99b9eca328be0ea94b0390d16 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 20 Nov 2009 17:32:58 +0000 Subject: detect XO 1.0 and XO 1.5 --- diff --git a/tawindow.py b/tawindow.py index 219427a..d3241cd 100644 --- a/tawindow.py +++ b/tawindow.py @@ -104,7 +104,8 @@ def twNew(win, path, lang, parent=None): tw.area = win.window tw.gc = tw.area.new_gc() # on an OLPC-XO-1, there is a scaling factor - if os.path.exists('/etc/olpc-release'): + if os.path.exists('/etc/olpc-release') or \ + os.path.exists('/sys/power/olpc-pm'): tw.lead = 1.6 tw.scale = 1.0 else: -- cgit v0.9.1