From b11046c00cd5cff3283941e27f469152966125b0 Mon Sep 17 00:00:00 2001 From: storypku Date: Sun, 16 Aug 2020 23:06:46 -0700 Subject: [PATCH] Scripts: use generated py binary --- modules/tools/control_info/run.sh | 22 ---------------------- scripts/control_info.sh | 8 +++----- 2 files changed, 3 insertions(+), 27 deletions(-) delete mode 100755 modules/tools/control_info/run.sh diff --git a/modules/tools/control_info/run.sh b/modules/tools/control_info/run.sh deleted file mode 100755 index 9f495b2682f..00000000000 --- a/modules/tools/control_info/run.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -############################################################################### -# Copyright 2017 The Apollo Authors. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -############################################################################### - -TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd -P)" -source "${TOP_DIR}/scripts/apollo_base.sh" - -${TOP_DIR}/bazel-bin/modules/tools/control_info/control_info "$@" diff --git a/scripts/control_info.sh b/scripts/control_info.sh index 05e572059bf..05ec1f7858a 100755 --- a/scripts/control_info.sh +++ b/scripts/control_info.sh @@ -16,9 +16,7 @@ # limitations under the License. ############################################################################### +TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" +source "${TOP_DIR}/scripts/apollo_base.sh" -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -source "${DIR}/apollo_base.sh" - -python ${DIR}/../modules/tools/control_info/control_info.py $@ +${TOP_DIR}/bazel-bin/modules/tools/control_info/control_info "$@"