-
Notifications
You must be signed in to change notification settings - Fork 4
/
vvconda.run.sh
executable file
·35 lines (27 loc) · 1021 Bytes
/
vvconda.run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash -a
VERAViewDir=$(dirname "$0")
#------------------------------------------------------------------------
# If you changed the path for your per-user environment setup,
# set the value of the CondaBinDir variable to point the bin subdir
# under that path.
#------------------------------------------------------------------------
CondaBinDir="${VERAViewDir}/miniconda2/bin"
[ ! -d "${CondaBinDir}" ] && CondaBinDir="$HOME/miniconda2/bin"
[ ! -d "${CondaBinDir}" ] && CondaBinDir="$HOME/anaconda2/bin"
if [ "$(uname)" = "Darwin" ]; then
CondaExe="${CondaBinDir}/pythonw"
else
CondaExe="${CondaBinDir}/python"
fi
if [ -x "${CondaExe}" ]; then
export ETS_TOOLKIT=wx
export PYTHONPATH="${VERAViewDir}:${PYTHONPATH}"
echo "CondaExe=${CondaExe}"
exec "${CondaExe}" "${VERAViewDir}/veraview.py" "$@"
else
cat <<END >&2
** Anaconda2/Miniconda2 installation not found **
Modify this script to set the CondaBinDir environment variable to point
to your Anaconda2 or Miniconda2 bin directory.
END
fi