-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathsetup_shell.sh
More file actions
executable file
·36 lines (32 loc) · 971 Bytes
/
setup_shell.sh
File metadata and controls
executable file
·36 lines (32 loc) · 971 Bytes
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
36
#!/usr/bin/env sh
# Suppress ShellCheck warning about not following external file
# shellcheck disable=SC1091
. "$(poetry env info --path)"/bin/activate
# Suppress ShellCheck warning about not following external file
# shellcheck disable=SC1091
case "$SHELL" in
*bash)
. install/setup.bash
echo "Sourced bash install"
;;
*zsh)
. install/setup.zsh
echo "Sourced zsh install"
;;
*fish)
echo "fish is not supported"
;;
*sh)
. install/setup.sh
echo "Sourced sh install."
;;
*)
echo "Unknown shell: $0"
;;
esac
export PYTHONPATH
PYTHONPATH="$(dirname "$(dirname "$(poetry run which python)")")/lib/python$(poetry run python --version | awk '{print $2}' | cut -d. -f1,2)/site-packages:$PYTHONPATH"
PYTHONPATH="src/rai_core:$PYTHONPATH"
PYTHONPATH="src/rai_sim:$PYTHONPATH"
PYTHONPATH="src/rai_s2s:$PYTHONPATH"
PYTHONPATH="src/rai_bench:$PYTHONPATH"