diff options
author | Walter Bender <walter.bender@gmail.com> | 2011-04-07 14:51:40 (GMT) |
---|---|---|
committer | Walter Bender <walter.bender@gmail.com> | 2011-04-07 14:51:40 (GMT) |
commit | c3f0e8e2bfa09e2043016e808673a8c0779e4886 (patch) | |
tree | 2829dcc2cdf269c2a36f27afa69256286238f892 /plugins/rfid/serial/__init__.py | |
parent | 7e6d1757a3d6a23e446bf0f7875a98633a041295 (diff) |
reorganizing plugins into separate directories; adding support for plugin palette icons in plugin directory
Diffstat (limited to 'plugins/rfid/serial/__init__.py')
-rw-r--r-- | plugins/rfid/serial/__init__.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/rfid/serial/__init__.py b/plugins/rfid/serial/__init__.py new file mode 100644 index 0000000..681ad5c --- /dev/null +++ b/plugins/rfid/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) + |