Commit c357dca4 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 241c9484
...@@ -145,7 +145,7 @@ class Recipe(EnvironMixin): ...@@ -145,7 +145,7 @@ class Recipe(EnvironMixin):
try: try:
if not is_temp: if not is_temp:
filename = os.path.abspath(filename) filename = os.path.abspath(filename)
module = module_from_file_location('script', filename) module = module_from_file_location('<script>', filename)
script = getattr(module, callable.strip()) script = getattr(module, callable.strip())
try: try:
script(self.options, self.buildout, self.environ) 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