diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2002-02-12 23:24:41 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2002-02-12 23:24:41 +0000 |
commit | 5b6169d84afc45c1f979e4fb27df86fc1eb1d994 (patch) | |
tree | de176c7572b8114191ba7d1f80307af5b9bcd7f3 /pyserial/serial/__init__.py | |
download | pyserial-5b6169d84afc45c1f979e4fb27df86fc1eb1d994.tar.gz |
initial split from pybsl, jython supportavendor
git-svn-id: http://svn.code.sf.net/p/pyserial/code/branches/avendor@3 f19166aa-fa4f-0410-85c2-fa1106f25c8a
Diffstat (limited to 'pyserial/serial/__init__.py')
-rw-r--r-- | pyserial/serial/__init__.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pyserial/serial/__init__.py b/pyserial/serial/__init__.py new file mode 100644 index 0000000..b5d9c91 --- /dev/null +++ b/pyserial/serial/__init__.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +#portable serial port access with python +#this is a wrapper module for different platform implementations +# +# (C)2001 Chris Liechti <cliechti@gmx.net> +# this is distributed under a free software license, see license.txt + +import sys, os, string +VERSION = string.split("$Revision: 1.1.1.1 $")[1] #extract CVS version + +#chose an implementation, depending on os +if os.name == 'nt': #sys.platform == 'win32': + from serialwin32 import * +elif os.name == 'posix': + from serialposix import * +elif os.name == 'java': + from serialjava import * +else: + raise "Sorry no implementation for your platform available." + +#no "mac" implementation. someone want's to write it? i have no access to a mac. |