source: utils/Python/python_wrapper.in@ 43552e

Candidate_v1.6.1
Last change on this file since 43552e was 9fd196, checked in by Frederik Heber <heber@…>, 13 years ago

Added bash_completion file.

  • use as . utils/Bash/bash_completion, installed in bin folder.
  • moved all python files in utils into subfolder Python therein.
  • We scan molecuilder's help output for the present actions and return in COMPREPLY, fully capable of giving option to last action and all available actions in any other case.
  • we expand files if no "--" is given.
  • TESTFIX: Python/BoxMaker needs to call boxmaker.py from utils/Python.
  • Property mode set to 100644
File size: 459 bytes
Line 
1#! /bin/sh
2#
3# Script taken from Trond Norbye (Couchbase.com) with small modifications.
4#
5# This script is intended to be copied to foo if python script is called foo.py
6# and will call same-named script with exported and correctly set PYTHONPATH.
7
8prefix="@prefix@"
9exec_prefix="@exec_prefix@"
10if test -z "${PYTHONPATH}"; then
11 PYTHONPATH=@pyexecdir@
12else
13 PYTHONPATH=@pyexecdir@:${PYTHONPATH}
14fi
15export PYTHONPATH
16exec @pyexecdir@/`basename $0`.py "$@"
Note: See TracBrowser for help on using the repository browser.