Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make all python files executable and standardize interpreter #2809

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci_set_matrix.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import json

# toolchain, url
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/device/audio_4_channel_mic/src/plot_audio_samples.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/device/audio_test/src/plot_audio_samples.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/device/audio_test_freertos/src/plot_audio_samples.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/device/audio_test_multi_rate/src/plot_audio_samples.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sounddevice as sd
import matplotlib.pyplot as plt
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions examples/device/hid_generic_inout/hid_test.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Install python3 HID package https://pypi.org/project/hid/
import hid

Expand Down
1 change: 1 addition & 0 deletions examples/device/uac2_speaker_fb/src/audio_debug.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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/

Expand Down
Empty file modified examples/device/usbtmc/visaQuery.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion hw/bsp/fomu/dfu.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion hw/mcu/sony/cxd56/tools/flash_writer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/env python3
#!/usr/bin/env python3

# Copyright (C) 2018 Sony Semiconductor Solutions Corp.
#
Expand Down
1 change: 1 addition & 0 deletions hw/mcu/sony/cxd56/tools/xmodem.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
'''
===============================
XMODEM file transfer protocol
Expand Down
1 change: 1 addition & 0 deletions src/portable/synopsys/dwc2/dwc2_info.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import click
import ctypes
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions test/hil/hil_test.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
#
# The MIT License (MIT)
#
Expand Down
2 changes: 1 addition & 1 deletion test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! python3
#!/usr/bin/env python3
# ==========================================
# Unity Project - A Test Framework for C
# Copyright (c) 2015 Alexander Mueller / [email protected]
Expand Down
1 change: 1 addition & 0 deletions test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import sys
import os
from glob import glob
Expand Down
1 change: 1 addition & 0 deletions tools/build.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import argparse
import random
import os
Expand Down
1 change: 1 addition & 0 deletions tools/build_utils.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import subprocess
import pathlib
import time
Expand Down
1 change: 1 addition & 0 deletions tools/gen_doc.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import pandas as pd
from tabulate import tabulate
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tools/get_deps.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import argparse
import sys
import subprocess
Expand Down
2 changes: 1 addition & 1 deletion tools/iar_gen.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3

import os
import sys
Expand Down
1 change: 1 addition & 0 deletions tools/make_release.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import re
import gen_doc

Expand Down
Empty file modified tools/mksunxi.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion tools/pcapng_to_corpus.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/python3
#!/usr/bin/env python3
import argparse
import pcapng
import zipfile
Expand Down
Loading