Add setup_python_node script to run create scripts.

This commit is contained in:
Paul Kronenwetter 2022-06-25 15:43:30 -04:00
parent 2b19ca854f
commit d2104a306a
2 changed files with 23 additions and 0 deletions

View File

@ -21,6 +21,7 @@ done
# Verify it's there.
if [ ! -x ${CHOSEN} ]; then
echo "Error: ${CHOSEN} is not executable or does not exist."
echo "Note: FreeDATA requires Python 3 (higher than version 3.6)."
exit 1
fi

22
tools/setup_python_node.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
if [ ! -d "tnc" ]; then
echo "Error: Run this script from the main FreeDATA directory."
exit 1
fi
HERE="$(pwd)"
echo "Running Python and NodeJS setup scripts for FreeDATA..."
bash tools/create_python_env.sh
bash tools/create_node_env.sh
echo "Both Python and NodeJS were setup correctly."
echo ""
echo "Run the following to add the new Python environment to your path:"
echo "source ${HERE}/.venv/activate"
echo ""
echo "Run the following to add the new NodeJS environment to your path:"
echo "PATH=\${PATH}:${HERE}/gui/node_modules/bin:${HERE}/gui/node_modules/.bin"