Commit 7c092ddf authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[execution][local] Remove use of Prefix

parent 57da5bf9
......@@ -63,8 +63,7 @@ class LocalExecutor(BaseExecutor):
Parameters:
prefix (beat.backend.python.utils.Prefix): Establishes the prefix of
your installation.
prefix (str): Establishes the prefix of your installation.
data (dict, str): The piece of data representing the block to be executed.
It must validate against the schema defined for execution blocks. If a
......@@ -256,7 +255,7 @@ class LocalExecutor(BaseExecutor):
exc_type, exc_value, exc_traceback = sys.exc_info()
tb = traceback.extract_tb(exc_traceback)
contributions_prefix = os.path.join(prefix.paths[0], contribution_kind) + os.sep
contributions_prefix = os.path.join(prefix, contribution_kind) + os.sep
for first_line, line in enumerate(tb):
if line[0].startswith(contributions_prefix):
......
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