Commit eea36475 authored by Akim Demaille's avatar Akim Demaille
Browse files

vcsn: don't run vcsn-tools before having set all the vars up

PATH etc. must be ready before being used.
parent 1c864a78
#! /bin/sh
set -e
fatal ()
{
local i
......@@ -16,9 +18,6 @@ config ()
exec vcsn-tools configuration "configuration.$1"
}
export PYTHON=$(config python)
export IPYTHON=$(config ipython)
# _Append_ VCSN_PYTHONDIR, not prepend, so that the user can still
# override this path via $PYTHONPATH. Note in particular that the
# builddir-tests need to override $PYTHONPATH to use non-installed
......@@ -73,10 +72,13 @@ fi
PATH=$VCSN_PATH
export PATH
export PYTHON=$(config python)
export IPYTHON=$(config ipython)
# The Tools commands.
commands ()
{
vcsn-tools --commands
exec vcsn-tools --commands
}
# The Tools commands as a grep pattern.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment