Commit 61fb1a0a authored by Guy Rozendorn's avatar Guy Rozendorn

Recipe.call_script: script.split fix

If the script was r'C:\someDirectory\someFile.py:someFunction', splitting it would raise an exception
The correct way to spli the filename and the callable would be to rsplit(':', 1)
parent 3cace017
......@@ -70,7 +70,7 @@ class Recipe(object):
See http://pypi.python.org/pypi/z3c.recipe.runscript for details.
"""
filename, callable = script.split(':')
filename, callable = script.rsplit(':', 1)
filename = os.path.abspath(filename)
module = imp.load_source('script', filename)
script = getattr(module, callable.strip())
......
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