From 2002bef6849f7e070cf76065868008a21016bd6b Mon Sep 17 00:00:00 2001 From: Greg Von Kuster Date: Wed, 16 Apr 2008 13:16:05 +0000 Subject: [PATCH] Fix for jobs.__init__ for tools with no command line. --- lib/galaxy/jobs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index db672af32b3..59b03dc7981 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -284,7 +284,7 @@ class JobWrapper( object ): # Build the job's command line self.command_line = self.tool.build_command_line( param_dict ) # FIXME: for now, tools get Galaxy's lib dir in their path - if self.command_line.startswith( 'python' ): + if self.command_line and self.command_line.startswith( 'python' ): self.galaxy_lib_dir = os.path.abspath( "lib" ) # cwd = galaxy root # command_line won't actually be set in the db until finish unless you do it here # We need it in the db to be able to restart jobs -ndc