make all python files executable and standardize interpreter

This commit is contained in:
Shawn Hoffman 2024-09-17 12:17:12 -07:00
parent f4dd176484
commit 616532892d
25 changed files with 23 additions and 5 deletions

1
.github/workflows/ci_set_matrix.py vendored Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import json import json
# toolchain, url # toolchain, url

1
docs/conf.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Configuration file for the Sphinx documentation builder. # Configuration file for the Sphinx documentation builder.
# #
# This file only contains a selection of the most common options. For a full # This file only contains a selection of the most common options. For a full

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd import sounddevice as sd
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd import sounddevice as sd
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np

1
examples/device/audio_test/src/plot_audio_samples.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd import sounddevice as sd
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd import sounddevice as sd
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd import sounddevice as sd
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np import numpy as np

1
examples/device/hid_generic_inout/hid_test.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Install python3 HID package https://pypi.org/project/hid/ # Install python3 HID package https://pypi.org/project/hid/
import hid import hid

1
examples/device/uac2_speaker_fb/src/audio_debug.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Install python3 HID package https://pypi.org/project/hid/ # Install python3 HID package https://pypi.org/project/hid/
# Install python3 matplotlib package https://pypi.org/project/matplotlib/ # Install python3 matplotlib package https://pypi.org/project/matplotlib/

0
examples/device/usbtmc/visaQuery.py Normal file → Executable file
View File

2
hw/bsp/fomu/dfu.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
# Written by Antonio Galea - 2010/11/18 # Written by Antonio Galea - 2010/11/18
# Updated for DFU 1.1 by Sean Cross - 2020/03/31 # Updated for DFU 1.1 by Sean Cross - 2020/03/31

View File

@ -1,4 +1,4 @@
#! /usr/bin/env python3 #!/usr/bin/env python3
# Copyright (C) 2018 Sony Semiconductor Solutions Corp. # Copyright (C) 2018 Sony Semiconductor Solutions Corp.
# #

1
hw/mcu/sony/cxd56/tools/xmodem.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
''' '''
=============================== ===============================
XMODEM file transfer protocol XMODEM file transfer protocol

1
src/portable/synopsys/dwc2/dwc2_info.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import click import click
import ctypes import ctypes
import pandas as pd import pandas as pd

1
test/hil/hil_test.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# #
# The MIT License (MIT) # The MIT License (MIT)
# #

View File

@ -1,4 +1,4 @@
#! python3 #!/usr/bin/env python3
# ========================================== # ==========================================
# Unity Project - A Test Framework for C # Unity Project - A Test Framework for C
# Copyright (c) 2015 Alexander Mueller / XelaRellum@web.de # Copyright (c) 2015 Alexander Mueller / XelaRellum@web.de

1
test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py vendored Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys import sys
import os import os
from glob import glob from glob import glob

1
tools/build.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import argparse import argparse
import random import random
import os import os

1
tools/build_utils.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import subprocess import subprocess
import pathlib import pathlib
import time import time

1
tools/gen_doc.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import pandas as pd import pandas as pd
from tabulate import tabulate from tabulate import tabulate
from pathlib import Path from pathlib import Path

1
tools/get_deps.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import argparse import argparse
import sys import sys
import subprocess import subprocess

2
tools/iar_gen.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import os import os
import sys import sys

1
tools/make_release.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
import re import re
import gen_doc import gen_doc

0
tools/mksunxi.py Normal file → Executable file
View File

View File

@ -1,4 +1,4 @@
#!/bin/python3 #!/usr/bin/env python3
import argparse import argparse
import pcapng import pcapng
import zipfile import zipfile