From 1314ff25a297f9bf1eb7145bf388a7c24c3360da Mon Sep 17 00:00:00 2001 From: Saket Choudhary Date: Wed, 24 Sep 2014 23:10:51 -0700 Subject: [PATCH] Update tool_list to reflect recent change in use of envirnoment variables tool_list.py now makese use of GALAXY_TEST_TOOL_CONF and exits throwing an appropriate error --- tool_list.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tool_list.py b/tool_list.py index b4da4cd584b..3af37c42771 100644 --- a/tool_list.py +++ b/tool_list.py @@ -1,9 +1,15 @@ -import os,sys +import os +import sys #--------read tool_conf.xml to get all the tool xml file names----------- onoff = 1 tool_list = [] -for line in open("tool_conf.xml", "r"): +tool_conf_file = os.environ.get( 'GALAXY_TEST_TOOL_CONF', 'config/tool_conf.xml' ) +if not os.path.isfile(tool_conf_file): + sys.stderr.write( "Tool config file not found: {}\n".format(tool_conf_file) ) + sys.exit(1) + +for line in open(tool_conf_file, "r"): if line.find("