Simplify the SConstruct godot-cpp submodule test.

This commit is contained in:
Lukas Tenbrink
2025-04-14 15:52:55 +02:00
parent 7ef3bea224
commit ae466c7426

View File

@@ -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: