From 40e1b078259c6f940014f7f248e7da1a0fb6e7d2 Mon Sep 17 00:00:00 2001 From: cliechti Date: Sat, 12 Mar 2005 12:05:26 +0000 Subject: add aix definitions --- pyserial/serial/serialposix.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyserial/serial/serialposix.py b/pyserial/serial/serialposix.py index 7f96714..c78893e 100644 --- a/pyserial/serial/serialposix.py +++ b/pyserial/serial/serialposix.py @@ -13,7 +13,7 @@ import sys, os, fcntl, termios, struct, select, errno from serialutil import * -VERSION = "$Revision: 1.26 $".split()[1] #extract CVS version +VERSION = "$Revision: 1.27 $".split()[1] #extract CVS version #Do check the Python version as some constants have moved. if (sys.hexversion < 0x020100f0): @@ -63,6 +63,10 @@ elif plat[:2] == 'hp': #HP-UX (not tested) elif plat[:5] == 'sunos': #Solaris/SunOS (confirmed) def device(port): return '/dev/tty%c' % (ord('a')+port) + +elif plat[:3] == 'aix': #aix + def device(port): + return '/dev/tty%d' % (port) else: #platform detection has failed... -- cgit v1.2.1