env: New script, munges PYTHONPATH for uninstalled usage, and also $PACKAGES which is useful if you add `print-packag...

Original commit message from CVS:
2005-07-12  Andy Wingo  <wingo@pobox.com>

* env: New script, munges PYTHONPATH for uninstalled usage, and
also $PACKAGES which is useful if you add `print-packages` to your
$PS1 and drop http://wingolog.org/pub/print-packages into your
$PATH.
This commit is contained in:
Andy Wingo 2005-07-12 14:56:57 +00:00
parent 76ea628334
commit 2694486583
2 changed files with 18 additions and 0 deletions

View file

@ -1,5 +1,10 @@
2005-07-12 Andy Wingo <wingo@pobox.com> 2005-07-12 Andy Wingo <wingo@pobox.com>
* env: New script, munges PYTHONPATH for uninstalled usage, and
also $PACKAGES which is useful if you add `print-packages` to your
$PS1 and drop http://wingolog.org/pub/print-packages into your
$PATH.
* configure.ac (AC_CONFIG_FILES): The makefile handles pygst.py * configure.ac (AC_CONFIG_FILES): The makefile handles pygst.py
now. now.

13
env Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
thisdir=$(cd `dirname $0` && pwd)
if [[ -n $PYTHONPATH ]]; then
export PYTHONPATH=$thisdir:$PYTHONPATH
else
export PYTHONPATH=$thisdir
fi
export PACKAGES="pygst $PACKAGES"
exec "$@"