diff options
Diffstat (limited to 'serial/__init__.py')
-rwxr-xr-x | serial/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/serial/__init__.py b/serial/__init__.py new file mode 100755 index 0000000..e181864 --- /dev/null +++ b/serial/__init__.py @@ -0,0 +1,15 @@ +#! /usr/bin/python +#portable serial port access with python +#this is a wrapper module for different platform implementations +# +# (C)2001-2002 Chris Liechti <cliechti@gmx.net> +# this is distributed under a free software license, see license.txt + +import sys, os, string +VERSION = '2.3' + +#chose an implementation, depending on os +if os.name == 'posix': + from serialposix import * +else: + raise Exception(_("Sorry: no implementation for your platform ('%s') available") % os.name) |