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.