Skip to content

Commit

Permalink
Merge pull request #18 from tiagofrepereira2012/master
Browse files Browse the repository at this point in the history
Fixed a bug when there is no argument called env
  • Loading branch information
tiagofrepereira2012 committed May 10, 2016
2 parents 9fec016 + 9252143 commit faab391
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bob/bio/base/tools/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def __init__(self, args, command_line_parameters, executable = 'verify.py', firs
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'])
Expand Down

0 comments on commit faab391

Please sign in to comment.