diff trinityToolWrapper.py @ 8:28f6d3b8e931 draft

Adjusting requirements.
author trinity_ctat
date Tue, 26 Sep 2017 14:54:33 -0400
parents 78d12a725443
children b6152cc26ffd
line wrap: on
line diff
--- a/trinityToolWrapper.py	Tue Sep 26 14:31:27 2017 -0400
+++ b/trinityToolWrapper.py	Tue Sep 26 14:54:33 2017 -0400
@@ -24,8 +24,9 @@
     try:
         pipe1 = subprocess.Popen(["which", "Trinity"], stdout=subprocess.PIPE)
     except:
+        msg = "You must set the environmental variable TRINITY_HOME to the base installation directory of Trinity before running {:s}.".format(sys.argv[0])
+        sys.stderr.write(msg)
         t, v, tb = sys.exc_info()
-        sys.stderr.write("You must set the environmental variable TRINITY_HOME to the base installation directory of Trinity before running {:s}.".format(sys.argv[0]))
         raise t, v, tb
     else:
         TrinityPath, err_info = pipe1.communicate()