Fix loading of collection operations

If MODEL_TOOLS_PATH is not absolute, it will be joined with tool_path
(i.e. './tools' ) inside _load_tool_tag_set(), so Galaxy will try to load
e.g. './tools/lib/galaxy/tools/unzip_collection.xml'
This commit is contained in:
Nicola Soranzo
2016-11-01 19:51:05 +00:00
parent 65dc4f22aa
commit 9abe863f26
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ import galaxy.jobs
log = logging.getLogger( __name__ )
HELP_UNINITIALIZED = threading.Lock()
MODEL_TOOLS_PATH = os.path.dirname(__file__)
MODEL_TOOLS_PATH = os.path.abspath(os.path.dirname(__file__))
class ToolErrorLog:
+1 -1
View File
@@ -615,7 +615,7 @@ class AbstractToolBox( Dictifiable, ManagesIntegratedToolPanelMixin, object ):
if labels is not None:
tool.labels = labels
except IOError:
log.error( "Error reading tool configuration file from path: %s." % path )
log.error( "Error reading tool configuration file from path: %s" % path )
except Exception:
log.exception( "Error reading tool from path: %s" % path )