Simplify the SConstruct godot-cpp submodule test.

This commit is contained in:
Lukas Tenbrink committed 2025-04-14 15:54:06 +02:00
1 parent 7ef3bea224
commit ae466c7426
1 file changed
+1 -7
+1 -7
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: