summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index d54e336c..4c5fa9e5 100644
--- a/project.py
+++ b/project.py
@@ -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)