Skip to content

Commit

Permalink
Add pgzero builtins to Python builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Jul 29, 2018
1 parent d859120 commit d9b0da9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pgzero/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ def prepare_mod(mod):
loaders.set_root(mod.__file__)
PGZeroGame.show_default_icon()
pygame.display.set_mode((100, 100), DISPLAY_FLAGS)
mod.__dict__.update(builtins.__dict__)
import builtins as python_builtins
for k, v in builtins.__dict__.items():
python_builtins.__dict__.setdefault(k, v)


def configure_repl(repl):
Expand Down

0 comments on commit d9b0da9

Please sign in to comment.