summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2024-10-07 11:11:54 +0700
committerGitHub <[email protected]>2024-10-07 11:11:54 +0700
commita13dbd4452c2ff80923df363a1468be50f56d2ed (patch)
treef3eb2c5b1e46a221163b63f410e5323c5e16c075
parent6bfd02413785b8cdb3b4bb7e2f3851be0a50156e (diff)
parent616532892d913b7224806ed1e881b72ed66bb3e1 (diff)
Merge pull request #2809 from shuffle2/master
make all python files executable and standardize interpreter
-rwxr-xr-x[-rw-r--r--].github/workflows/ci_set_matrix.py1
-rwxr-xr-x[-rw-r--r--]docs/conf.py1
-rwxr-xr-x[-rw-r--r--]examples/device/audio_4_channel_mic/src/plot_audio_samples.py1
-rwxr-xr-x[-rw-r--r--]examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py1
-rwxr-xr-x[-rw-r--r--]examples/device/audio_test/src/plot_audio_samples.py1
-rwxr-xr-x[-rw-r--r--]examples/device/audio_test_freertos/src/plot_audio_samples.py1
-rwxr-xr-x[-rw-r--r--]examples/device/audio_test_multi_rate/src/plot_audio_samples.py1
-rwxr-xr-x[-rw-r--r--]examples/device/hid_generic_inout/hid_test.py1
-rwxr-xr-x[-rw-r--r--]examples/device/uac2_speaker_fb/src/audio_debug.py1
-rwxr-xr-x[-rw-r--r--]examples/device/usbtmc/visaQuery.py0
-rwxr-xr-x[-rw-r--r--]hw/bsp/fomu/dfu.py2
-rwxr-xr-xhw/mcu/sony/cxd56/tools/flash_writer.py2
-rwxr-xr-x[-rw-r--r--]hw/mcu/sony/cxd56/tools/xmodem.py1
-rwxr-xr-x[-rw-r--r--]src/portable/synopsys/dwc2/dwc2_info.py1
-rwxr-xr-x[-rw-r--r--]test/hil/hil_test.py1
-rwxr-xr-x[-rw-r--r--]test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py2
-rwxr-xr-x[-rw-r--r--]test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py1
-rwxr-xr-x[-rw-r--r--]tools/build.py1
-rwxr-xr-x[-rw-r--r--]tools/build_utils.py1
-rwxr-xr-x[-rw-r--r--]tools/gen_doc.py1
-rwxr-xr-x[-rw-r--r--]tools/get_deps.py1
-rwxr-xr-x[-rw-r--r--]tools/iar_gen.py2
-rwxr-xr-x[-rw-r--r--]tools/make_release.py1
-rwxr-xr-x[-rw-r--r--]tools/mksunxi.py0
-rwxr-xr-xtools/pcapng_to_corpus.py2
25 files changed, 23 insertions, 5 deletions
diff --git a/.github/workflows/ci_set_matrix.py b/.github/workflows/ci_set_matrix.py
index 7cc749d48..705dcac94 100644..100755
--- a/.github/workflows/ci_set_matrix.py
+++ b/.github/workflows/ci_set_matrix.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import json
# toolchain, url
diff --git a/docs/conf.py b/docs/conf.py
index 878b29645..af44b7339 100644..100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
diff --git a/examples/device/audio_4_channel_mic/src/plot_audio_samples.py b/examples/device/audio_4_channel_mic/src/plot_audio_samples.py
index d17a908b6..4d61e7f5e 100644..100755
--- a/examples/device/audio_4_channel_mic/src/plot_audio_samples.py
+++ b/examples/device/audio_4_channel_mic/src/plot_audio_samples.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
diff --git a/examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py b/examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py
index 8312b4e28..4d5ca28d6 100644..100755
--- a/examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py
+++ b/examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
diff --git a/examples/device/audio_test/src/plot_audio_samples.py b/examples/device/audio_test/src/plot_audio_samples.py
index 1504684a6..ea6aa661e 100644..100755
--- a/examples/device/audio_test/src/plot_audio_samples.py
+++ b/examples/device/audio_test/src/plot_audio_samples.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
diff --git a/examples/device/audio_test_freertos/src/plot_audio_samples.py b/examples/device/audio_test_freertos/src/plot_audio_samples.py
index 304b2d5de..46738eb3f 100644..100755
--- a/examples/device/audio_test_freertos/src/plot_audio_samples.py
+++ b/examples/device/audio_test_freertos/src/plot_audio_samples.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
diff --git a/examples/device/audio_test_multi_rate/src/plot_audio_samples.py b/examples/device/audio_test_multi_rate/src/plot_audio_samples.py
index c92e49957..1f33a003e 100644..100755
--- a/examples/device/audio_test_multi_rate/src/plot_audio_samples.py
+++ b/examples/device/audio_test_multi_rate/src/plot_audio_samples.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
diff --git a/examples/device/hid_generic_inout/hid_test.py b/examples/device/hid_generic_inout/hid_test.py
index 5bdba9db0..3aaca9d2c 100644..100755
--- a/examples/device/hid_generic_inout/hid_test.py
+++ b/examples/device/hid_generic_inout/hid_test.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# Install python3 HID package https://pypi.org/project/hid/
import hid
diff --git a/examples/device/uac2_speaker_fb/src/audio_debug.py b/examples/device/uac2_speaker_fb/src/audio_debug.py
index 336c46c01..05b49baf6 100644..100755
--- a/examples/device/uac2_speaker_fb/src/audio_debug.py
+++ b/examples/device/uac2_speaker_fb/src/audio_debug.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
# Install python3 HID package https://pypi.org/project/hid/
# Install python3 matplotlib package https://pypi.org/project/matplotlib/
diff --git a/examples/device/usbtmc/visaQuery.py b/examples/device/usbtmc/visaQuery.py
index ca65daf97..ca65daf97 100644..100755
--- a/examples/device/usbtmc/visaQuery.py
+++ b/examples/device/usbtmc/visaQuery.py
diff --git a/hw/bsp/fomu/dfu.py b/hw/bsp/fomu/dfu.py
index 32479350c..8383852e3 100644..100755
--- a/hw/bsp/fomu/dfu.py
+++ b/hw/bsp/fomu/dfu.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
# Written by Antonio Galea - 2010/11/18
# Updated for DFU 1.1 by Sean Cross - 2020/03/31
diff --git a/hw/mcu/sony/cxd56/tools/flash_writer.py b/hw/mcu/sony/cxd56/tools/flash_writer.py
index bf630547a..387e679da 100755
--- a/hw/mcu/sony/cxd56/tools/flash_writer.py
+++ b/hw/mcu/sony/cxd56/tools/flash_writer.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
# Copyright (C) 2018 Sony Semiconductor Solutions Corp.
#
diff --git a/hw/mcu/sony/cxd56/tools/xmodem.py b/hw/mcu/sony/cxd56/tools/xmodem.py
index 60fcc952c..3ee2698f7 100644..100755
--- a/hw/mcu/sony/cxd56/tools/xmodem.py
+++ b/hw/mcu/sony/cxd56/tools/xmodem.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
'''
===============================
XMODEM file transfer protocol
diff --git a/src/portable/synopsys/dwc2/dwc2_info.py b/src/portable/synopsys/dwc2/dwc2_info.py
index e382ba011..33997ca19 100644..100755
--- a/src/portable/synopsys/dwc2/dwc2_info.py
+++ b/src/portable/synopsys/dwc2/dwc2_info.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import click
import ctypes
import pandas as pd
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py
index 50f72b30f..60bba9bd2 100644..100755
--- a/test/hil/hil_test.py
+++ b/test/hil/hil_test.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
#
# The MIT License (MIT)
#
diff --git a/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py b/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py
index 00c0da8cc..a8e5b2726 100644..100755
--- a/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py
+++ b/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py
@@ -1,4 +1,4 @@
-#! python3
+#!/usr/bin/env python3
# ==========================================
# Unity Project - A Test Framework for C
# Copyright (c) 2015 Alexander Mueller / [email protected]
diff --git a/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py b/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py
index 71dd56888..2379ad49a 100644..100755
--- a/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py
+++ b/test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import sys
import os
from glob import glob
diff --git a/tools/build.py b/tools/build.py
index 3a771ed6b..91d4ebd30 100644..100755
--- a/tools/build.py
+++ b/tools/build.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import argparse
import random
import os
diff --git a/tools/build_utils.py b/tools/build_utils.py
index 265ab5c52..5462829e2 100644..100755
--- a/tools/build_utils.py
+++ b/tools/build_utils.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import subprocess
import pathlib
import time
diff --git a/tools/gen_doc.py b/tools/gen_doc.py
index 668c77ef6..c69f3ff29 100644..100755
--- a/tools/gen_doc.py
+++ b/tools/gen_doc.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import pandas as pd
from tabulate import tabulate
from pathlib import Path
diff --git a/tools/get_deps.py b/tools/get_deps.py
index 5946d7def..519cb1d53 100644..100755
--- a/tools/get_deps.py
+++ b/tools/get_deps.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import argparse
import sys
import subprocess
diff --git a/tools/iar_gen.py b/tools/iar_gen.py
index ebcfa1423..8d45659db 100644..100755
--- a/tools/iar_gen.py
+++ b/tools/iar_gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
import os
import sys
diff --git a/tools/make_release.py b/tools/make_release.py
index 3e653c12d..92c75baf9 100644..100755
--- a/tools/make_release.py
+++ b/tools/make_release.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python3
import re
import gen_doc
diff --git a/tools/mksunxi.py b/tools/mksunxi.py
index fd8557cfc..fd8557cfc 100644..100755
--- a/tools/mksunxi.py
+++ b/tools/mksunxi.py
diff --git a/tools/pcapng_to_corpus.py b/tools/pcapng_to_corpus.py
index 9c31365eb..3089f0bb6 100755
--- a/tools/pcapng_to_corpus.py
+++ b/tools/pcapng_to_corpus.py
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
import argparse
import pcapng
import zipfile