diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -496,7 +496,7 @@ class RepoHook(object): | |||
| 496 | 496 | ||
| 497 | # Exec, storing global context in the context dict. We catch exceptions | 497 | # Exec, storing global context in the context dict. We catch exceptions |
| 498 | # and convert to a HookError w/ just the failing traceback. | 498 | # and convert to a HookError w/ just the failing traceback. |
| 499 | context = {} | 499 | context = {'__file__': self._script_fullpath} |
| 500 | try: | 500 | try: |
| 501 | exec(compile(open(self._script_fullpath).read(), | 501 | exec(compile(open(self._script_fullpath).read(), |
| 502 | self._script_fullpath, 'exec'), context) | 502 | self._script_fullpath, 'exec'), context) |
