values of sys.platform? for a serial port lib

Carey Evans careye at spamcop.net
Sun Dec 30 21:28:32 EST 2001


Chris Liechti <cliechti at gmx.net> writes:

> i'm interested in values for "sys.platform" and, if possible, the name of 
> the serial port (an how the ports are numbered ttyS0, ttyS1 etc.)
> e.g "linux2" and "/dev/ttyS%d" % port, numbering starting at zero.

Actually, my "linux2" platform has the serial ports at /dev/tts/{0,1}.
Granted, some of this may be just me delighting in finding out how
many programs break when I disable compatibility symlinks in devfs,
but it's worth remembering that even standard serial ports may be
somewhere strange.

-- 
	 Carey Evans  http://home.clear.net.nz/pages/c.evans/



More information about the Python-list mailing list