From 276b9636f92f3592c6a72d8214f0ac08578bbad2 Mon Sep 17 00:00:00 2001 From: zhang_xubo <2578876417@qq.com> Date: Thu, 11 Jul 2024 20:22:39 +0800 Subject: [PATCH] =?UTF-8?q?trc=5Fgen.py=E7=94=9F=E6=88=90=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=94=B9=E4=B8=BApython3=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/gstrace/CMakeLists.txt | 2 +- src/lib/gstrace/Makefile | 2 +- src/lib/gstrace/script/trc_gen.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/gstrace/CMakeLists.txt b/src/lib/gstrace/CMakeLists.txt index 4551e767c..803f369e9 100755 --- a/src/lib/gstrace/CMakeLists.txt +++ b/src/lib/gstrace/CMakeLists.txt @@ -1,6 +1,6 @@ #This is the main CMAKE for build all components. execute_process( - COMMAND python ./script/trc_gen.py -s ./config/ -o ${CMAKE_CURRENT_SOURCE_DIR}/../../include/gstrace + COMMAND python3 ./script/trc_gen.py -s ./config/ -o ${CMAKE_CURRENT_SOURCE_DIR}/../../include/gstrace WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) diff --git a/src/lib/gstrace/Makefile b/src/lib/gstrace/Makefile index 048612ba2..959f4c4be 100644 --- a/src/lib/gstrace/Makefile +++ b/src/lib/gstrace/Makefile @@ -45,7 +45,7 @@ all: $(HEADERFILE) install: all $(HEADERFILE): $(CONFIGFILE) - python ./script/trc_gen.py -s ./config/ -o ./../../include/gstrace + python3 ./script/trc_gen.py -s ./config/ -o ./../../include/gstrace clean: rm -f ./../../include/gstrace/*_gstrace.h diff --git a/src/lib/gstrace/script/trc_gen.py b/src/lib/gstrace/script/trc_gen.py index 7abebbdcc..572bdde61 100644 --- a/src/lib/gstrace/script/trc_gen.py +++ b/src/lib/gstrace/script/trc_gen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2020 Huawei Technologies Co.,Ltd.