From ced9b532c58e88736b65b572bf9276ed4ef93b50 Mon Sep 17 00:00:00 2001
From: Walter Bender <walter@sugarlabs.org>
Date: Sun, 23 May 2010 20:57:21 -0400
Subject: [PATCH] typo, switch to os.remove

---
 extensions/cpsection/touchpad/model.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extensions/cpsection/touchpad/model.py b/extensions/cpsection/touchpad/model.py
index 8c17cb9..4e29651 100644
--- a/extensions/cpsection/touchpad/model.py
+++ b/extensions/cpsection/touchpad/model.py
@@ -15,7 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
 from gettext import gettext as _
-from os import system, path
+from os import system, path, remove
 import gconf
 
 _CAPACITIVE = 0
@@ -38,8 +38,8 @@ def get_touchpad():
 def set_touchpad(touchpad):
     """Set the touchpad mode."""
     if touchpad == _CAPACITIVE:
-        if path.exisits(_flag_path):
-            system("rm %s" % (_flag_path))
+        if path.exists(_flag_path):
+            remove(_flag_path)
         system("echo 0 > %s" % (_node_path))
     else:
         system("touch %s" % (_flag_path))
-- 
1.7.0.4

