Skip to content

Commit 0cdf9f4

Browse files
fix: missing path of env variable PATH
Change-Id: I6f388ae29ed9af7e836b5fa90996a3f043ee4fc6
1 parent 1c8c7b2 commit 0cdf9f4

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

cyber/setup.bash

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ export APOLLO_BAZEL_DIST_DIR="${APOLLO_CACHE_DIR}/distdir"
66
export CYBER_PATH="${APOLLO_ROOT_DIR}/cyber"
77

88
bazel_bin_path="${APOLLO_ROOT_DIR}/bazel-bin"
9-
# mainboard_path="${bazel_bin_path}/cyber/mainboard"
10-
# cyber_tool_path="${bazel_bin_path}/cyber/tools"
11-
# recorder_path="${cyber_tool_path}/cyber_recorder"
12-
# launch_path="${cyber_tool_path}/cyber_launch"
13-
# channel_path="${cyber_tool_path}/cyber_channel"
14-
# node_path="${cyber_tool_path}/cyber_node"
15-
# service_path="${cyber_tool_path}/cyber_service"
16-
# monitor_path="${cyber_tool_path}/cyber_monitor"
17-
# visualizer_path="${bazel_bin_path}/modules/tools/visualizer"
9+
mainboard_path="${bazel_bin_path}/cyber/mainboard"
10+
cyber_tool_path="${bazel_bin_path}/cyber/tools"
11+
recorder_path="${cyber_tool_path}/cyber_recorder"
12+
launch_path="${cyber_tool_path}/cyber_launch"
13+
channel_path="${cyber_tool_path}/cyber_channel"
14+
node_path="${cyber_tool_path}/cyber_node"
15+
service_path="${cyber_tool_path}/cyber_service"
16+
monitor_path="${cyber_tool_path}/cyber_monitor"
17+
visualizer_path="${bazel_bin_path}/modules/tools/visualizer"
1818

1919
# TODO(all): place all these in one place and pathprepend
20-
# for entry in "${mainboard_path}" \
21-
# "${recorder_path}" "${monitor_path}" \
22-
# "${channel_path}" "${node_path}" \
23-
# "${service_path}" \
24-
# "${launch_path}" \
25-
# "${visualizer_path}" ; do
26-
# pathprepend "${entry}"
27-
# done
20+
for entry in "${mainboard_path}" \
21+
"${recorder_path}" "${monitor_path}" \
22+
"${channel_path}" "${node_path}" \
23+
"${service_path}" \
24+
"${launch_path}" \
25+
"${visualizer_path}" ; do
26+
pathprepend "${entry}"
27+
done
2828

2929
pathprepend ${bazel_bin_path}/cyber/python/internal PYTHONPATH
3030
pathprepend "${PYTHON_INSTALL_PATH}/lib/python${PYTHON_VERSION}/site-packages" PYTHONPATH

scripts/apollo_base.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ function site_restore() {
3333
[[ -e "${TOP_DIR}/WORKSPACE.source" ]] && rm -f "${TOP_DIR}/WORKSPACE" && cp "${TOP_DIR}/WORKSPACE.source" "${TOP_DIR}/WORKSPACE"
3434
echo "" > "${TOP_DIR}/tools/package/rules_cc.patch"
3535
[[ -e "${TOP_DIR}/tools/proto/proto.bzl.tpl" ]] && rm -f "${TOP_DIR}/tools/proto/proto.bzl" && cp "${TOP_DIR}/tools/proto/proto.bzl.tpl" "${TOP_DIR}/tools/proto/proto.bzl"
36-
[[ ! -z $(which buildtool) ]] && sudo apt remove -y apollo-neo-buildtool
36+
if which buildtool > /dev/null 2>&1; then
37+
sudo apt remove -y apollo-neo-buildtool
38+
fi
39+
return 0
3740
}
3841

3942
function env_prepare() {

0 commit comments

Comments
 (0)