Skip to content
Snippets Groups Projects
Commit c42fdf61 authored by Manuel Günther's avatar Manuel Günther
Browse files

Improved video extension compatibility; made bin/resources.py more beautiful

parent 74539e24
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,9 @@ class GridSubmission:
# find, where the executable is installed
import bob.extension
if command_line_parameters is None:
command_line_parameters = sys.argv[1:]
executables = bob.extension.find_executable(executable, prefixes = ['bin'])
if not len(executables):
raise IOError("Could not find the '%s' executable." % executable)
......
......@@ -34,7 +34,7 @@ def preprocess(preprocessor, groups=None, indices=None, force=False):
# check for existence
if not utils.check_file(preprocessed_data_file, force, 1000):
file_name = str(data_files[i])
file_name = data_files[i]
data = preprocessor.read_original_data(file_name)
# get the annotations; might be None
......
......@@ -174,13 +174,15 @@ def list_resources(keyword, strip=['dummy']):
entry_points = _get_entry_points(keyword, strip)
last_dist = None
retval = ""
length = max(len(entry_point.name) for entry_point in entry_points)
for entry_point in sorted(entry_points):
if last_dist != str(entry_point.dist):
retval += "\n- %s: \n" % str(entry_point.dist)
last_dist = str(entry_point.dist)
if len(entry_point.attrs):
retval += " + %s --> %s: %s\n" % (entry_point.name, entry_point.module_name, entry_point.attrs[0])
retval += " + %s --> %s: %s\n" % (entry_point.name + " "*(length - len(entry_point.name)), entry_point.module_name, entry_point.attrs[0])
else:
retval += " + %s --> %s\n" % (entry_point.name, entry_point.module_name)
retval += " + %s --> %s\n" % (entry_point.name + " "*(length - len(entry_point.name)), entry_point.module_name)
return retval
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment