From 2a8d08f9883fe65b82576971c6f2d4c94d351cd1 Mon Sep 17 00:00:00 2001 From: Manuel Gunther <siebenkopf@googlemail.com> Date: Tue, 27 Oct 2015 12:05:16 -0600 Subject: [PATCH] Fixed grid submission in case we are not in the current package directory --- bob/bio/base/tools/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bob/bio/base/tools/grid.py b/bob/bio/base/tools/grid.py index 6dad8179..52e1ce68 100644 --- a/bob/bio/base/tools/grid.py +++ b/bob/bio/base/tools/grid.py @@ -40,7 +40,7 @@ class GridSubmission: 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 = [os.path.dirname(sys.argv[0]), 'bin']) if not len(executables): raise IOError("Could not find the '%s' executable." % executable) executable = executables[0] -- GitLab