Skip to content
Snippets Groups Projects
Commit f93983c8 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithm] Remove use of Prefix

New beat.cmdline tests don't need it anymore
parent cb95bc54
No related branches found
No related tags found
1 merge request!17Merge development branch 1.5.x
Pipeline #
...@@ -857,12 +857,9 @@ class Algorithm(object): ...@@ -857,12 +857,9 @@ class Algorithm(object):
if not self.valid: if not self.valid:
raise RuntimeError("algorithm is not valid") raise RuntimeError("algorithm is not valid")
if isinstance(prefix, six.string_types): if prefix == self.prefix:
prefix = utils.Prefix(prefix) raise RuntimeError("Cannot export algorithm to the same prefix ("
"%s)" % prefix)
if prefix.paths[0] in self.prefix.paths:
raise RuntimeError("Cannot export algorithm to the same prefix (%s in " \
"%s)" % (prefix.paths[0], self.prefix.paths))
for k in self.libraries.values(): for k in self.libraries.values():
k.export(prefix) k.export(prefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment