diff --git a/_modules/pypot/dynamixel.html b/_modules/pypot/dynamixel.html index 9733b52d..4b8a8a67 100644 --- a/_modules/pypot/dynamixel.html +++ b/_modules/pypot/dynamixel.html @@ -155,7 +155,7 @@
if platform.system() == 'Darwin':
return glob.glob('/dev/tty.usb*')
- elif platform.system() == 'Linux':
+ elif platform.system() == 'Linux' or platform.startswith('cygwin'):
return glob.glob('/dev/ttyACM*') + glob.glob('/dev/ttyUSB*')
elif platform.system() == 'Windows':
@@ -171,7 +171,8 @@ Source code for pypot.dynamixel
ports.append(str(_winreg.EnumValue(key, i)[1]))
except WindowsError:
return ports
-
+ else:
+ raise EnvironmentError('{} is an unsupported platform, cannot find serial ports !'.format(platform.system()))
return []