summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-11 18:13:23 +0100
committerGitHub <noreply@github.com>2021-02-11 18:13:23 +0100
commite5bb89cdd5e92fa6fdeff78aad08bf0cbfbcc692 (patch)
tree031082b88160b1e3d6d89b5eb47e92cfbb122bf1
parent68624f32b0b88a6fbcc413bfccbdad4460431e8b (diff)
parent75910d1e9b37dc5647a9f8883c5a2268188a2423 (diff)
Merge pull request #45901 from akien-mga/scons-fix-custom_modules-is_engine
SCons: Fix Godot detection in custom modules logic
-rw-r--r--methods.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/methods.py b/methods.py
index f302500b5d..45cfe00959 100644
--- a/methods.py
+++ b/methods.py
@@ -174,9 +174,7 @@ def detect_modules(search_path, recursive=False):
version_path = os.path.join(path, "version.py")
if os.path.exists(version_path):
with open(version_path) as f:
- version = {}
- exec(f.read(), version)
- if version.get("short_name") == "godot":
+ if 'short_name = "godot"' in f.read():
return True
return False