Skip to content

Commit 505a7dc

Browse files
author
Ram Rachum
committed
-
1 parent 744199e commit 505a7dc

File tree

1 file changed

+5
-0
lines changed
  • garlicsim_wx/garlicsim_wx/widgets/workspace_widgets

1 file changed

+5
-0
lines changed

garlicsim_wx/garlicsim_wx/widgets/workspace_widgets/shell.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,9 @@ def __init__(self, frame):
3636
locals=locals_for_shell)
3737
WorkspaceWidget.__init__(self, frame)
3838

39+
# Obscure: This causes the `site` module to add `help` and a few others
40+
# to `__builtin__`. For some reason `site` isn't imported when frozen
41+
# with py2exe, so here we make sure to import it.
42+
import site; del site
43+
3944

0 commit comments

Comments
 (0)