/usr/share/pyshared/parallel/__init__.py is in python-parallel 0.2-7.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #! /usr/bin/python
#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 sys, os, string
VERSION = "0.3"
#chose an implementation, depending on os
if os.name == 'nt':
from parallelwin32 import *
elif os.name == 'posix':
if sys.platform == 'linux2':
from parallelppdev import * #linux, kernel 2.4
else:
from parallelioctl import * #IOCTLs
elif os.name == 'java':
from paralleljava import *
else:
raise NotImplementedError, "Sorry no implementation for your platform available."
|