File: wrapper

package info (click to toggle)
pychecker 0.8.10-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,276 kB
  • ctags: 1,331
  • sloc: python: 6,214; sh: 92; makefile: 37
file content (28 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# A small wrapper for pychecker
# Copyright Arto Jantunen <viiru@debian.org>
# Some minor changes by Justin Hahn <jeh@profitlogic.com>

if [ ! $PYTHONVER ]; then

        # Since pychecker depends on a python install we needn't worry
        # about the case where there is no python installed unless
        # the admin has done an equivs. But we're not in the business of
        # supporting that.

        for i in /usr/bin/python \
                /usr/bin/python2.1 \
                /usr/bin/python2.2 \
                /usr/bin/python2 \
                /usr/bin/python1.5 \
                `which python`
        do
                if [ -x $i ]
                then
                        $i /usr/share/pychecker/checker.py $@
                        break
                fi
        done
else
        python$PYTHONVER /usr/share/pychecker/checker.py $@
fi