From 0c1454d97c592c2cf79179390531f60deace18f1 Mon Sep 17 00:00:00 2001 From: Achiel Colpaert Date: Mon, 27 Aug 2018 14:53:45 +0200 Subject: [PATCH] Fix typo in ipath in rfkill.py Missing forward slash in the ipath resulting errors when rfkill could not be found. --- pyric/utils/rfkill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyric/utils/rfkill.py b/pyric/utils/rfkill.py index ce0416e..9022dfd 100644 --- a/pyric/utils/rfkill.py +++ b/pyric/utils/rfkill.py @@ -61,7 +61,7 @@ """ dpath = '/dev/rfkill' spath = '/sys/class/rfkill' -ipath = 'sys/class/ieee80211' # directory of physical indexes +ipath = '/sys/class/ieee80211' # directory of physical indexes def rfkill_list(): """ @@ -231,4 +231,4 @@ def gettype(idx): except IOError: raise pyric.error(errno.ENODEV,"No device at {0}".format(idx)) finally: - if fin: fin.close() \ No newline at end of file + if fin: fin.close()