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 6e8dcbe7..e3c3bd51 100644
--- a/project.py
+++ b/project.py
@@ -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)