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
|
b
|
|
15 | 15 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
16 | 16 | # |
17 | 17 | from gettext import gettext as _ |
18 | | from os import system, path |
| 18 | from os import system, path, remove |
19 | 19 | import gconf |
20 | 20 | |
21 | 21 | _CAPACITIVE = 0 |
… |
… |
def get_touchpad(): |
38 | 38 | def set_touchpad(touchpad): |
39 | 39 | """Set the touchpad mode.""" |
40 | 40 | if touchpad == _CAPACITIVE: |
41 | | if path.exisits(_flag_path): |
42 | | system("rm %s" % (_flag_path)) |
| 41 | if path.exists(_flag_path): |
| 42 | remove(_flag_path) |
43 | 43 | system("echo 0 > %s" % (_node_path)) |
44 | 44 | else: |
45 | 45 | system("touch %s" % (_flag_path)) |