summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2005-03-12 12:05:26 +0000
committercliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a>2005-03-12 12:05:26 +0000
commit40e1b078259c6f940014f7f248e7da1a0fb6e7d2 (patch)
treed1cf715ff87b7bf8d44c8c9f1d5996f2afe112ce
parent4bb278cf3d39e7e78fd2e3e400c7e257f8f9f609 (diff)
downloadpyserial-git-40e1b078259c6f940014f7f248e7da1a0fb6e7d2.tar.gz
add aix definitions
-rw-r--r--pyserial/serial/serialposix.py6
1 files changed, 5 insertions, 1 deletions
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...