diff --git a/bob/bio/base/tools/grid.py b/bob/bio/base/tools/grid.py index cb04d88a12530adae3e7aad7fb9d458583097245..3a3218a42c22f0aa116f117d13c7fd1cd60c669e 100644 --- a/bob/bio/base/tools/grid.py +++ b/bob/bio/base/tools/grid.py @@ -50,7 +50,10 @@ class GridSubmission: if args.grid is not None: assert isinstance(args.grid, grid.Grid) - self.env = args.env #Fetching the enviroment variable + if(hasattr(args,'env')): + self.env = args.env #Fetching the enviroment variable + else: + self.env = None # find, where jman is installed jmans = bob.extension.find_executable('jman', prefixes = ['bin'])