Skip to content

Commit ae466c7

Browse files
committed
Simplify the SConstruct godot-cpp submodule test.
1 parent 7ef3bea commit ae466c7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

SConstruct

+1-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ Help(opts.GenerateHelpText(localEnv))
2828

2929
env = localEnv.Clone()
3030

31-
submodule_initialized = False
32-
dir_name = 'godot-cpp'
33-
if os.path.isdir(dir_name):
34-
if os.listdir(dir_name):
35-
submodule_initialized = True
36-
37-
if not submodule_initialized:
31+
if not (os.path.isdir("godot-cpp") and os.listdir("godot-cpp")):
3832
print_error("""godot-cpp is not available within this folder, as Git submodules haven't been initialized.
3933
Run the following command to download godot-cpp:
4034

0 commit comments

Comments
 (0)