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

Fixed grid submission in case we are not in the current package directory

parent 49b9e491
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class GridSubmission: ...@@ -40,7 +40,7 @@ class GridSubmission:
if command_line_parameters is None: if command_line_parameters is None:
command_line_parameters = sys.argv[1:] command_line_parameters = sys.argv[1:]
executables = bob.extension.find_executable(executable, prefixes = ['bin']) executables = bob.extension.find_executable(executable, prefixes = [os.path.dirname(sys.argv[0]), '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)
executable = executables[0] executable = executables[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment