🔨 Clean up Python imports (#24736)
This commit is contained in:
parent
cc2cc7d081
commit
63507acf98
@ -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
|
||||||
|
@ -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")
|
||||||
|
@ -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'
|
||||||
|
@ -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()
|
||||||
|
@ -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")
|
||||||
|
@ -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")
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# preprocessor.py
|
# preprocessor.py
|
||||||
#
|
#
|
||||||
import subprocess,re
|
import subprocess
|
||||||
|
|
||||||
nocache = 1
|
nocache = 1
|
||||||
verbose = 0
|
verbose = 0
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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')):
|
||||||
|
@ -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()
|
||||||
|
@ -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…
Reference in New Issue
Block a user