Skip to content

Commit

Permalink
address #37
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Feb 2, 2014
1 parent c3a1767 commit e6a4d3c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def provision (self, overlay) :

resource_url = saga.Url (troy_pilot.resource)
userid = getpass.getuser()
home = os.environ['HOME']
home = None
queue = None
walltime = 24 * 60 # 1 day as default

Expand All @@ -112,6 +112,11 @@ def provision (self, overlay) :

break

if not home :
troy._logger.error ("no home dir in config for bj on %s" % resource_url
+" - assume local $HOME (%s)" % os.environ['HOME'])
home = os.environ['HOME']

pilot_descr.working_directory = "%s/troy_agents/" % home
pilot_descr.queue = queue
pilot_descr.wall_time = 300
Expand Down

0 comments on commit e6a4d3c

Please sign in to comment.