File: paster

package info (click to toggle)
pastescript 2.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 940 kB
  • sloc: python: 5,295; sh: 41; makefile: 14
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