Browse Source

🔨 Clean up Python imports (#24736)

dmitrygribenchuk 1 year ago
parent
commit
83aac65664
No account linked to committer's email address

+ 0
- 1
buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py View File

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

+ 0
- 1
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py View File

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

+ 0
- 1
buildroot/share/PlatformIO/scripts/mc-apply.py View File

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

+ 1
- 1
buildroot/share/PlatformIO/scripts/offset_and_rename.py View File

@@ -10,7 +10,7 @@
10 10
 #
11 11
 import pioutil
12 12
 if pioutil.is_pio_build():
13
-    import sys,marlin
13
+    import marlin
14 14
 
15 15
     env = marlin.env
16 16
     board = env.BoardConfig()

+ 0
- 1
buildroot/share/PlatformIO/scripts/openblt.py View File

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

+ 1
- 1
buildroot/share/PlatformIO/scripts/preflight-checks.py View File

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

+ 1
- 1
buildroot/share/PlatformIO/scripts/preprocessor.py View File

@@ -1,7 +1,7 @@
1 1
 #
2 2
 # preprocessor.py
3 3
 #
4
-import subprocess,re
4
+import subprocess
5 5
 
6 6
 nocache = 1
7 7
 verbose = 0

+ 0
- 1
buildroot/share/dwin/bin/makeIco.py View File

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

+ 0
- 1
buildroot/share/dwin/bin/splitIco.py View File

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

+ 2
- 2
buildroot/share/scripts/gen-tft-image.py View File

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

+ 1
- 1
buildroot/share/vscode/create_custom_upload_command_CDC.py View File

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

+ 1
- 1
buildroot/share/vscode/create_custom_upload_command_DFU.py View File

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

Loading…
Cancel
Save