diff tools/mira4/mira4_bait.py @ 13:7fcabeeca5df draft

Uploaded v0.0.2 preview 5, fixes for MIRA 4.0 (final), more verbose error if $MIRA4 path wrong
author peterjc
date Sun, 16 Feb 2014 16:30:48 -0500
parents a6a56440567c
children
line wrap: on
line diff
--- a/tools/mira4/mira4_bait.py	Mon Feb 03 06:25:35 2014 -0500
+++ b/tools/mira4/mira4_bait.py	Sun Feb 16 16:30:48 2014 -0500
@@ -43,7 +43,8 @@
     stop_err("Environment variable $MIRA4 not set")
 mira_binary = os.path.join(mira_path, "mirabait")
 if not os.path.isfile(mira_binary):
-    stop_err("Missing mirabait under $MIRA4, %r" % mira_binary)
+    stop_err("Missing mirabait under $MIRA4, %r\nFolder contained: %s"
+             % (mira_binary, ", ".join(os.listdir(mira_path))))
 mira_ver = get_version(mira_binary)
 if not mira_ver.strip().startswith("4.0"):
     stop_err("This wrapper is for MIRA V4.0, not:\n%s" % mira_ver)