Skip to content

Commit

Permalink
Merge pull request #45901 from akien-mga/scons-fix-custom_modules-is_…
Browse files Browse the repository at this point in the history
…engine

SCons: Fix Godot detection in custom modules logic
  • Loading branch information
akien-mga authored Feb 11, 2021
2 parents 68624f3 + 75910d1 commit e5bb89c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ def is_engine(path):
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

Expand Down

0 comments on commit e5bb89c

Please sign in to comment.