commit/galaxy-central: saketkc: Update tool_list to reflect recent change in use of envirnoment variables
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/bcd98385d0af/ Changeset: bcd98385d0af User: saketkc Date: 2014-09-25 06:10:51+00:00 Summary: 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 Affected #: 1 file diff -r a3d10d4db962d762d045bf3e46163508d3572e95 -r bcd98385d0af97c1dd5d4ba7944da49ff28158e1 tool_list.py --- 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("<!--") != -1: onoff = 0 if line.find("file") != -1 and onoff==1: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org