!5765 trc_gen.py生成脚本改为python3执行

Merge pull request !5765 from zhangxubo/master
This commit is contained in:
opengauss_bot
2024-08-03 03:09:27 +00:00
committed by Gitee
3 changed files with 3 additions and 3 deletions

View File

@ -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}
)

View File

@ -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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# coding=utf-8
#
# Copyright (c) 2020 Huawei Technologies Co.,Ltd.