File tree 3 files changed +9
-17
lines changed
3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change
1
+ __pycache__
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env python
2
- #portable parallel port access with python
3
- #this is a wrapper module for different platform implementations
1
+ # portable parallel port access with python
2
+ # this is a wrapper module for different platform implementations
4
3
#
5
4
# (C)2001-2002 Chris Liechti <[email protected] >
6
5
# this is distributed under a free software license, see license.txt
7
6
8
- import sys , os , string
7
+ import os
9
8
VERSION = "0.3"
10
9
11
- #chose an implementation, depending on os
10
+ # choose an implementation, depending on os
12
11
if os .name == 'nt' :
13
- from parallelwin32 import *
12
+ from parallel . parallelwin32 import Parallel # noqa
14
13
elif os .name == 'posix' :
15
- if sys .platform == 'linux2' :
16
- from parallelppdev import * #linux, kernel 2.4
17
- else :
18
- from parallelioctl import * #IOCTLs
19
- elif os .name == 'java' :
20
- from paralleljava import *
14
+ from parallel .parallelppdev import Parallel # noqa
21
15
else :
22
16
raise "Sorry no implementation for your platform available."
Original file line number Diff line number Diff line change 3
3
try :
4
4
from setuptools import setup
5
5
except ImportError :
6
- print "standart distutils"
7
6
from distutils .core import setup
8
- else :
9
- print "setuptools"
10
7
import sys
11
8
12
9
#windows installer:
21
18
22
19
import os
23
20
if os .name == 'nt' :
24
- print " # set dependedcies for windows version"
21
+ # set dependencies for windows version
25
22
data_files = {'parallel' : ['simpleio.dll' ]}
26
23
else :
27
- print " # no dependedcies"
24
+ # no dependencies
28
25
data_files = {}
29
26
30
27
setup (
You can’t perform that action at this time.
0 commit comments