Commit ef85cc90 authored by Xavier Thompson's avatar Xavier Thompson

Import hook scripts as <script> instead of script

Why take the chance to potentially clobber a module named 'script'?
parent c709e5ce
......@@ -145,7 +145,7 @@ class Recipe(EnvironMixin):
try:
if not is_temp:
filename = os.path.abspath(filename)
module = module_from_file_location('script', filename)
module = module_from_file_location('<script>', filename)
script = getattr(module, callable.strip())
try:
script(self.options, self.buildout, self.environ)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment