Permalink
Browse files

Fix for sniffing tool xml files when they have less than 10 lines.

  • Loading branch information...
blankenberg committed Nov 17, 2014
1 parent 3152f53 commit a2c13e46259e3be35de1ecaae858ba818bb94734
Showing with 4 additions and 1 deletion.
  1. +4 −1 galaxy/tools/loader_directory.py
@@ -16,7 +16,10 @@ def load_tool_elements_from_path(path):
def __looks_like_a_tool(path):
with open(path) as f:
for i in range(10):
line = f.next()
try:
line = f.next()
except StopIteration:
break
if "<tool" in line:
return True
return False

0 comments on commit a2c13e4

Please sign in to comment.