Skip to content
Snippets Groups Projects
Commit 9252143c authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed a bug when there is no argument called env

parent 9fec0163
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,10 @@ class GridSubmission: ...@@ -50,7 +50,10 @@ class GridSubmission:
if args.grid is not None: if args.grid is not None:
assert isinstance(args.grid, grid.Grid) 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 # find, where jman is installed
jmans = bob.extension.find_executable('jman', prefixes = ['bin']) jmans = bob.extension.find_executable('jman', prefixes = ['bin'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment