Skip to content

Commit

Permalink
fixes web2py#1485, thanks @abastardi once again
Browse files Browse the repository at this point in the history
  • Loading branch information
niphlod committed Oct 3, 2016
1 parent 4f68c41 commit b9c1b4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gluon/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import sys
import code
import copy
import logging
import types
import re
Expand Down Expand Up @@ -167,6 +168,8 @@ def check_credentials(request, other_application='admin'):
sys.stderr.write(e.traceback + '\n')
sys.exit(1)

response._view_environment = copy.copy(environment)

environment['__name__'] = '__main__'
return environment

Expand Down

0 comments on commit b9c1b4d

Please sign in to comment.