File: __init__.py

package info (click to toggle)
pyparallel 0.2.2-4
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 120 kB
  • sloc: python: 191; makefile: 58
file content (16 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# portable parallel 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 os
VERSION = "0.3"

# choose an implementation, depending on os
if os.name == 'nt':
    from parallel.parallelwin32 import Parallel  # noqa
elif os.name == 'posix':
    from parallel.parallelppdev import Parallel  # noqa
else:
    raise "Sorry no implementation for your platform available."