Merge pull request #2809 from shuffle2/master
make all python files executable and standardize interpreter
This commit is contained in:
		
							
								
								
									
										1
									
								
								.github/workflows/ci_set_matrix.py
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/ci_set_matrix.py
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import json | ||||
|  | ||||
| # toolchain, url | ||||
|   | ||||
							
								
								
									
										1
									
								
								docs/conf.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								docs/conf.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -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 | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/audio_4_channel_mic/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/audio_4_channel_mic/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import sounddevice as sd | ||||
| import matplotlib.pyplot as plt | ||||
| import numpy as np | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/audio_4_channel_mic_freertos/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import sounddevice as sd | ||||
| import matplotlib.pyplot as plt | ||||
| import numpy as np | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/audio_test/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/audio_test/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import sounddevice as sd | ||||
| import matplotlib.pyplot as plt | ||||
| import numpy as np | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/audio_test_freertos/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/audio_test_freertos/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import sounddevice as sd | ||||
| import matplotlib.pyplot as plt | ||||
| import numpy as np | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/audio_test_multi_rate/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/audio_test_multi_rate/src/plot_audio_samples.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import sounddevice as sd | ||||
| import matplotlib.pyplot as plt | ||||
| import numpy as np | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/hid_generic_inout/hid_test.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/hid_generic_inout/hid_test.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| # Install python3 HID package https://pypi.org/project/hid/ | ||||
| import hid | ||||
|  | ||||
|   | ||||
							
								
								
									
										1
									
								
								examples/device/uac2_speaker_fb/src/audio_debug.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								examples/device/uac2_speaker_fb/src/audio_debug.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -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/ | ||||
|  | ||||
|   | ||||
							
								
								
									
										0
									
								
								examples/device/usbtmc/visaQuery.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								examples/device/usbtmc/visaQuery.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
								
								
									
										2
									
								
								hw/bsp/fomu/dfu.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								hw/bsp/fomu/dfu.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -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 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #! /usr/bin/env python3 | ||||
| #!/usr/bin/env python3 | ||||
|  | ||||
| # Copyright (C) 2018 Sony Semiconductor Solutions Corp. | ||||
| # | ||||
|   | ||||
							
								
								
									
										1
									
								
								hw/mcu/sony/cxd56/tools/xmodem.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								hw/mcu/sony/cxd56/tools/xmodem.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| ''' | ||||
| =============================== | ||||
|  XMODEM file transfer protocol | ||||
|   | ||||
							
								
								
									
										1
									
								
								src/portable/synopsys/dwc2/dwc2_info.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								src/portable/synopsys/dwc2/dwc2_info.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import click | ||||
| import ctypes | ||||
| import pandas as pd | ||||
|   | ||||
							
								
								
									
										1
									
								
								test/hil/hil_test.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								test/hil/hil_test.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| # | ||||
| # The MIT License (MIT) | ||||
| # | ||||
|   | ||||
							
								
								
									
										2
									
								
								test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								test/unit-test/vendor/ceedling/vendor/unity/auto/unity_test_summary.py
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,4 +1,4 @@ | ||||
| #! python3 | ||||
| #!/usr/bin/env python3 | ||||
| # ========================================== | ||||
| #   Unity Project - A Test Framework for C | ||||
| #   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
									
								
							
							
						
						
									
										1
									
								
								test/unit-test/vendor/ceedling/vendor/unity/auto/unity_to_junit.py
									
									
									
									
										vendored
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import sys | ||||
| import os | ||||
| from glob import glob | ||||
|   | ||||
							
								
								
									
										1
									
								
								tools/build.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								tools/build.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import argparse | ||||
| import random | ||||
| import os | ||||
|   | ||||
							
								
								
									
										1
									
								
								tools/build_utils.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								tools/build_utils.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import subprocess | ||||
| import pathlib | ||||
| import time | ||||
|   | ||||
							
								
								
									
										1
									
								
								tools/gen_doc.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								tools/gen_doc.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import pandas as pd | ||||
| from tabulate import tabulate | ||||
| from pathlib import Path | ||||
|   | ||||
							
								
								
									
										1
									
								
								tools/get_deps.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								tools/get_deps.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import argparse | ||||
| import sys | ||||
| import subprocess | ||||
|   | ||||
							
								
								
									
										2
									
								
								tools/iar_gen.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								tools/iar_gen.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,4 +1,4 @@ | ||||
| #!/usr/bin/python3 | ||||
| #!/usr/bin/env python3 | ||||
|  | ||||
| import os | ||||
| import sys | ||||
|   | ||||
							
								
								
									
										1
									
								
								tools/make_release.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										1
									
								
								tools/make_release.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,3 +1,4 @@ | ||||
| #!/usr/bin/env python3 | ||||
| import re | ||||
| import gen_doc | ||||
|  | ||||
|   | ||||
							
								
								
									
										0
									
								
								tools/mksunxi.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								tools/mksunxi.py
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							| @@ -1,4 +1,4 @@ | ||||
| #!/bin/python3 | ||||
| #!/usr/bin/env python3 | ||||
| import argparse | ||||
| import pcapng | ||||
| import zipfile | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ha Thach
					Ha Thach