mirror of
https://github.com/gryf/wicd.git
synced 2026-03-13 21:25:46 +01:00
Make GetWirelessInterfaces() return a list instead of the first interface. Also make the networking.py layer pull the first entry from the list.
Some documentation cleanup.
This commit is contained in:
@@ -127,7 +127,7 @@ def GetWirelessInterfaces():
|
||||
ifnames = [iface for iface in os.listdir(dev_dir) if os.path.isdir(dev_dir + iface)
|
||||
and 'wireless' in os.listdir(dev_dir + iface)]
|
||||
|
||||
return bool(ifnames) and ifnames[0] or None
|
||||
return ifnames
|
||||
|
||||
def GetWiredInterfaces():
|
||||
""" Returns a list of wired interfaces on the system. """
|
||||
|
||||
Reference in New Issue
Block a user