From 232dda2a37a420ece7d73e644fe0d9eac6ecdbb7 Mon Sep 17 00:00:00 2001 From: Kusok <118438257+kus04e4ek@users.noreply.github.com> Date: Tue, 16 Jul 2024 16:53:40 +0800 Subject: [PATCH] Add missing imports, remove wildcard and unused imports --- SConstruct | 2 -- godot-tools/macos.py | 1 - godot-tools/targets.py | 4 +--- godot-tools/windows.py | 3 ++- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/SConstruct b/SConstruct index 6f4a432..a731c83 100644 --- a/SConstruct +++ b/SConstruct @@ -3,9 +3,7 @@ import os import platform import sys -import subprocess from pathlib import Path -from SCons.Errors import UserError EnsureSConsVersion(4, 0) diff --git a/godot-tools/macos.py b/godot-tools/macos.py index 2e4bfc6..e8fe799 100644 --- a/godot-tools/macos.py +++ b/godot-tools/macos.py @@ -1,4 +1,3 @@ -import os import sys import macos_osxcross diff --git a/godot-tools/targets.py b/godot-tools/targets.py index 8ad3ddd..5ded42b 100644 --- a/godot-tools/targets.py +++ b/godot-tools/targets.py @@ -1,7 +1,5 @@ -import os -import sys from SCons.Script import ARGUMENTS -from SCons.Variables import * +from SCons.Variables import BoolVariable, EnumVariable from SCons.Variables.BoolVariable import _text2bool diff --git a/godot-tools/windows.py b/godot-tools/windows.py index 5ccec45..1ab4093 100644 --- a/godot-tools/windows.py +++ b/godot-tools/windows.py @@ -1,9 +1,10 @@ +import os import sys import my_spawn from SCons.Tool import msvc, mingw -from SCons.Variables import * +from SCons.Variables import BoolVariable def options(opts):