Improve support for cygwin. list_ports.comports now return ports like in windows. Not an empty list.
cygwin module should call native windows stuff for serial port, so DTR, DSR...etc. work correct.
if i understand that correctly, you'd prefer if on cygwin it would do the same thing as under regular win32. in that case, it should be possible to avoid the code duplication and just use (import) the win32 implementation for both.
quickly scanning through the patch, i've not seen differences to the win32 implementation except the renaming. so i guess a small change in list_ports.py and init.py to handle cygwin like win32 should suffice?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is right, but the problem is the ctypes dosen't treat cygwin as same as
windows. So there are minor differences have to make in order to use native
windows API under cygwin.
if i understand that correctly, you'd prefer if on cygwin it would do the
same thing as under regular win32. in that case, it should be possible to
avoid the code duplication and just use (import) the win32 implementation
for both.
quickly scanning through the patch, i've not seen differences to the win32
implementation except the renaming. so i guess a small change in
list_ports.py and init.py to handle cygwin like win32 should suffice?
Status: open Group: v2.7 Labels: PATCHS Created: Sat Aug 02, 2014 06:52 AM UTC by nhatkhai Last Updated: Sat Aug 02, 2014 06:52 AM UTC Owner: nobody
Improve support for cygwin. list_ports.comports now return ports like in
windows. Not an empty list.
cygwin module should call native windows stuff for serial port, so DTR,
DSR...etc. work correct.
if i understand that correctly, you'd prefer if on cygwin it would do the same thing as under regular win32. in that case, it should be possible to avoid the code duplication and just use (import) the win32 implementation for both.
quickly scanning through the patch, i've not seen differences to the win32 implementation except the renaming. so i guess a small change in list_ports.py and init.py to handle cygwin like win32 should suffice?
It is right, but the problem is the ctypes dosen't treat cygwin as same as
windows. So there are minor differences have to make in order to use native
windows API under cygwin.
On Sun, Aug 3, 2014 at 2:12 PM, Chris Liechti cliechti@users.sf.net wrote:
--
Nhat Khai Nguyen
Related
Patches: #33