File: paster

package info (click to toggle)
pastescript 3.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 784 kB
  • sloc: python: 5,212; sh: 65; makefile: 61
file content (12 lines) | stat: -rwxr-xr-x 323 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh

# determine desired Python version from filename
VERSION="${0##*paster}"

if [ ! -f /usr/bin/python$VERSION ]
then
	echo "Please install python$VERSION package" >&2
	exit 1
else
	exec python$VERSION -c "import sys; sys.argv[0] = '/usr/bin/paster$VERSION'; from paste.script import command; command.run()" $@
fi