summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Hoffman <[email protected]>2024-09-17 12:17:12 -0700
committerShawn Hoffman <[email protected]>2024-09-17 12:17:12 -0700
commit616532892d913b7224806ed1e881b72ed66bb3e1 (patch)
treeb31cfa68d8d64eb96699f7081646f56a4daae6e8
parentf4dd1764849d005a2e44d51f62428aeaf2513804 (diff)
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 4da26bfea..fde6e81d6 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 55bec3d23..9bbc18850 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 a569e7666..b2e17c8e3 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 f9ae68231..1f3a7e0af 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 5f88db8a2..357a95c93 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 06da54b41..84c6a9e61 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