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: ...@@ -37,6 +37,9 @@ class GridSubmission:
# find, where the executable is installed # find, where the executable is installed
import bob.extension import bob.extension
if command_line_parameters is None:
command_line_parameters = sys.argv[1:]
executables = bob.extension.find_executable(executable, prefixes = ['bin']) executables = bob.extension.find_executable(executable, prefixes = ['bin'])
if not len(executables): if not len(executables):
raise IOError("Could not find the '%s' executable." % executable) raise IOError("Could not find the '%s' executable." % executable)
......
...@@ -34,7 +34,7 @@ def preprocess(preprocessor, groups=None, indices=None, force=False): ...@@ -34,7 +34,7 @@ def preprocess(preprocessor, groups=None, indices=None, force=False):
# check for existence # check for existence
if not utils.check_file(preprocessed_data_file, force, 1000): 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) data = preprocessor.read_original_data(file_name)
# get the annotations; might be None # get the annotations; might be None
......
...@@ -174,13 +174,15 @@ def list_resources(keyword, strip=['dummy']): ...@@ -174,13 +174,15 @@ def list_resources(keyword, strip=['dummy']):
entry_points = _get_entry_points(keyword, strip) entry_points = _get_entry_points(keyword, strip)
last_dist = None last_dist = None
retval = "" retval = ""
length = max(len(entry_point.name) for entry_point in entry_points)
for entry_point in sorted(entry_points): for entry_point in sorted(entry_points):
if last_dist != str(entry_point.dist): if last_dist != str(entry_point.dist):
retval += "\n- %s: \n" % str(entry_point.dist) retval += "\n- %s: \n" % str(entry_point.dist)
last_dist = str(entry_point.dist) last_dist = str(entry_point.dist)
if len(entry_point.attrs): 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: 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 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