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