diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-12-02 15:43:02 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-12-02 15:43:02 (GMT) |
commit | ec79631f5e8370cfefcc581f9e74a9e3898fc7af (patch) | |
tree | 50e4bf13aa74f766eb6da6f62752e980d912bf2b /devices/serial/__init__.py | |
parent | b81c72123fbfba5944e8e763a6d103d6b8479cfa (diff) |
adding rfid support
Diffstat (limited to 'devices/serial/__init__.py')
-rw-r--r-- | devices/serial/__init__.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devices/serial/__init__.py b/devices/serial/__init__.py new file mode 100644 index 0000000..681ad5c --- /dev/null +++ b/devices/serial/__init__.py @@ -0,0 +1,25 @@ +#!/usr/bin/env 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 + +VERSION = '2.4' + +import sys + +if sys.platform == 'cli': + from serialcli import * +else: + import os + #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 Exception("Sorry: no implementation for your platform ('%s') available" % os.name) + |