Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins/rfid/rfid.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-11-25 01:01:44 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-25 01:01:44 (GMT)
commitd556aff9180cab2f6cc0f6978442215b205095d7 (patch)
tree3bb23f6be51c8458efb59e02550258322419a9aa /plugins/rfid/rfid.py
parentdd4d63d7aa2e841a2d4bfdd33217ecd56cf7b1b8 (diff)
use proper path when running from remote directory
Diffstat (limited to 'plugins/rfid/rfid.py')
-rw-r--r--plugins/rfid/rfid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/rfid/rfid.py b/plugins/rfid/rfid.py
index c8742ff..5355646 100644
--- a/plugins/rfid/rfid.py
+++ b/plugins/rfid/rfid.py
@@ -61,7 +61,7 @@ class Rfid(Plugin):
"""
self.rfid_connected = False
- self.rfid_device = find_device()
+ self.rfid_device = find_device(path=parent.path)
self.rfid_idn = ''
if self.rfid_device is not None:
@@ -118,7 +118,7 @@ class Rfid(Plugin):
Called from hal connection when a new device is plugged.
"""
if not self.rfid_connected:
- self.rfid_device = find_device()
+ self.rfid_device = find_device(path=parent.path)
_logger.debug("DEVICE_ADDED: %s" % self.rfid_device)
if self.rfid_device is not None:
_logger.debug("DEVICE_ADDED: RFID device is not None!")