minor clean up in scripts (#17483)

This commit is contained in:
Jason2866 2022-12-22 17:50:40 +01:00 committed by GitHub
parent 3c1531bf1c
commit c574e24cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 11 deletions

View File

@ -1,6 +1,5 @@
Import("env") Import("env")
env = DefaultEnvironment()
platform = env.PioPlatform()
import os import os
import glob import glob
import subprocess import subprocess

View File

@ -1,7 +1,7 @@
Import("env") Import("env")
import os import os
import shutil import shutil
import pathlib
import tasmotapiolib import tasmotapiolib
import gzip import gzip

View File

@ -1,6 +1,7 @@
# Original idea by Pascal Gollor at 2022-12-13 # Original idea by Pascal Gollor at 2022-12-13
Import("env") Import("env")
import os import os
import tasmotapiolib import tasmotapiolib

View File

@ -1,9 +1,7 @@
Import("env") Import("env")
Import("projenv")
import os
import shutil import shutil
import pathlib import pathlib
import tasmotapiolib import tasmotapiolib

View File

@ -1,4 +1,5 @@
Import('env') Import('env')
import os import os
import shutil import shutil

View File

@ -1,8 +1,8 @@
Import("env")
import glob import glob
import os import os
Import("env")
def FindInoNodes(env): def FindInoNodes(env):
src_dir = glob.escape(env.subst("$PROJECT_SRC_DIR")) src_dir = glob.escape(env.subst("$PROJECT_SRC_DIR"))
return env.Glob(os.path.join(src_dir, "*.ino")) + env.Glob( return env.Glob(os.path.join(src_dir, "*.ino")) + env.Glob(