env: New script, munges PYTHONPATH for uninstalled usage, and also $PACKAGES which...
authorAndy Wingo <wingo@pobox.com>
Tue, 12 Jul 2005 14:56:57 +0000 (14:56 +0000)
committerAndy Wingo <wingo@pobox.com>
Tue, 12 Jul 2005 14:56:57 +0000 (14:56 +0000)
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.

ChangeLog
env [new file with mode: 0755]

index ef80ca7..4b6a2a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
        now.
        
diff --git a/env b/env
new file mode 100755 (executable)
index 0000000..551e6fb
--- /dev/null
+++ b/env
@@ -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 "$@"