Commit f62736eb by Timothée Peignier

improve logic

parent 06731177
...@@ -86,7 +86,7 @@ class BaseFinderStorage(PipelineStorage): ...@@ -86,7 +86,7 @@ class BaseFinderStorage(PipelineStorage):
def find_storage(self, name): def find_storage(self, name):
for finder in finders.get_finders(): for finder in finders.get_finders():
for path, storage in finder.list([]): for path, storage in finder.list([]):
if os.path.dirname(name) in path: if path.startswith(os.path.dirname(name)):
return storage return storage
return None return None
......
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