Browse Source

🔨 Clean up Python imports (#24736)

FB4S_WIFI^2^2
dmitrygribenchuk 2 years ago
committed by Scott Lahteine
parent
commit
63507acf98
  1. 1
      buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  2. 1
      buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  3. 1
      buildroot/share/PlatformIO/scripts/mc-apply.py
  4. 2
      buildroot/share/PlatformIO/scripts/offset_and_rename.py
  5. 1
      buildroot/share/PlatformIO/scripts/openblt.py
  6. 2
      buildroot/share/PlatformIO/scripts/preflight-checks.py
  7. 2
      buildroot/share/PlatformIO/scripts/preprocessor.py
  8. 1
      buildroot/share/dwin/bin/makeIco.py
  9. 1
      buildroot/share/dwin/bin/splitIco.py
  10. 4
      buildroot/share/scripts/gen-tft-image.py
  11. 2
      buildroot/share/vscode/create_custom_upload_command_CDC.py
  12. 2
      buildroot/share/vscode/create_custom_upload_command_DFU.py

1
buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py

@ -4,7 +4,6 @@
import pioutil import pioutil
if pioutil.is_pio_build(): if pioutil.is_pio_build():
import os
Import("env", "projenv") Import("env", "projenv")
flash_size = 0 flash_size = 0

1
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py

@ -3,7 +3,6 @@
# #
import pioutil import pioutil
if pioutil.is_pio_build(): if pioutil.is_pio_build():
import os
from os.path import join from os.path import join
from os.path import expandvars from os.path import expandvars
Import("env") Import("env")

1
buildroot/share/PlatformIO/scripts/mc-apply.py

@ -5,7 +5,6 @@
import json import json
import sys import sys
import shutil import shutil
import re
opt_output = '--opt' in sys.argv opt_output = '--opt' in sys.argv
output_suffix = '.sh' if opt_output else '' if '--bare-output' in sys.argv else '.gen' output_suffix = '.sh' if opt_output else '' if '--bare-output' in sys.argv else '.gen'

2
buildroot/share/PlatformIO/scripts/offset_and_rename.py

@ -10,7 +10,7 @@
# #
import pioutil import pioutil
if pioutil.is_pio_build(): if pioutil.is_pio_build():
import sys,marlin import marlin
env = marlin.env env = marlin.env
board = env.BoardConfig() board = env.BoardConfig()

1
buildroot/share/PlatformIO/scripts/openblt.py

@ -3,7 +3,6 @@
# #
import pioutil import pioutil
if pioutil.is_pio_build(): if pioutil.is_pio_build():
import os,sys
from os.path import join from os.path import join
Import("env") Import("env")

2
buildroot/share/PlatformIO/scripts/preflight-checks.py

@ -5,7 +5,7 @@
import pioutil import pioutil
if pioutil.is_pio_build(): if pioutil.is_pio_build():
import os,re,sys import re,sys
from pathlib import Path from pathlib import Path
Import("env") Import("env")

2
buildroot/share/PlatformIO/scripts/preprocessor.py

@ -1,7 +1,7 @@
# #
# preprocessor.py # preprocessor.py
# #
import subprocess,re import subprocess
nocache = 1 nocache = 1
verbose = 0 verbose = 0

1
buildroot/share/dwin/bin/makeIco.py

@ -18,7 +18,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------- #----------------------------------------------------------------
import os
import os.path import os.path
import argparse import argparse
import DWIN_ICO import DWIN_ICO

1
buildroot/share/dwin/bin/splitIco.py

@ -18,7 +18,6 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
#---------------------------------------------------------------- #----------------------------------------------------------------
import os
import os.path import os.path
import argparse import argparse
import DWIN_ICO import DWIN_ICO

4
buildroot/share/scripts/gen-tft-image.py

@ -22,8 +22,8 @@
# Generate Marlin TFT Images from bitmaps/PNG/JPG # Generate Marlin TFT Images from bitmaps/PNG/JPG
import sys,re,struct import sys,struct
from PIL import Image,ImageDraw from PIL import Image
def image2bin(image, output_file): def image2bin(image, output_file):
if output_file.endswith(('.c', '.cpp')): if output_file.endswith(('.c', '.cpp')):

2
buildroot/share/vscode/create_custom_upload_command_CDC.py

@ -13,7 +13,7 @@
from __future__ import print_function from __future__ import print_function
from __future__ import division from __future__ import division
import subprocess,os,sys,platform import subprocess,os,platform
from SCons.Script import DefaultEnvironment from SCons.Script import DefaultEnvironment
current_OS = platform.system() current_OS = platform.system()

2
buildroot/share/vscode/create_custom_upload_command_DFU.py

@ -9,7 +9,7 @@
# Will continue on if a COM port isn't found so that the compilation can be done. # Will continue on if a COM port isn't found so that the compilation can be done.
# #
import os,sys import os
from SCons.Script import DefaultEnvironment from SCons.Script import DefaultEnvironment
import platform import platform
current_OS = platform.system() current_OS = platform.system()

Loading…
Cancel
Save