From ae466c74263ad40cfcea78f0d23cac719ccff096 Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Mon, 14 Apr 2025 15:52:55 +0200 Subject: [PATCH] Simplify the SConstruct godot-cpp submodule test. --- SConstruct | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/SConstruct b/SConstruct index d3bb2fc..1d599d0 100644 --- a/SConstruct +++ b/SConstruct @@ -28,13 +28,7 @@ Help(opts.GenerateHelpText(localEnv)) env = localEnv.Clone() -submodule_initialized = False -dir_name = 'godot-cpp' -if os.path.isdir(dir_name): - if os.listdir(dir_name): - submodule_initialized = True - -if not submodule_initialized: +if not (os.path.isdir("godot-cpp") and os.listdir("godot-cpp")): print_error("""godot-cpp is not available within this folder, as Git submodules haven't been initialized. Run the following command to download godot-cpp: