Skip to content

Commit

Permalink
Collector #1074: Give Script execution context a __name__
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Nov 4, 2003
1 parent 5c1ebba commit bbdbe9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Python code.
"""

__version__='$Revision: 1.48 $'[11:-2]
__version__='$Revision: 1.49 $'[11:-2]

import sys, os, traceback, re, marshal, new
from Globals import DTMLFile, MessageDialog, package_home
Expand Down Expand Up @@ -253,6 +253,7 @@ def _compile(self):

def _newfun(self, code):
g = {'__debug__': __debug__,
'__name__': self.id,
'__builtins__': safe_builtins,
'_getattr_': guarded_getattr,
'_getitem_': guarded_getitem,
Expand Down

0 comments on commit bbdbe9d

Please sign in to comment.