diff tools/mira4/mira4.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 381aa262c8cb
line wrap: on
line diff
--- a/tools/mira4/mira4.py	Mon Feb 03 06:25:35 2014 -0500
+++ b/tools/mira4/mira4.py	Sun Feb 16 16:30:48 2014 -0500
@@ -40,10 +40,12 @@
     stop_err("Environment variable $MIRA4 not set")
 mira_binary = os.path.join(mira_path, "mira")
 if not os.path.isfile(mira_binary):
-    stop_err("Missing mira under $MIRA4, %r" % mira_binary)
+    stop_err("Missing mira under $MIRA4, %r\nFolder contained: %s"
+             % (mira_binary, ", ".join(os.listdir(mira_path))))
 mira_convert = os.path.join(mira_path, "miraconvert")
 if not os.path.isfile(mira_convert):
-    stop_err("Missing miraconvert under $MIRA4, %r" % mira_convert)
+    stop_err("Missing miraconvert under $MIRA4, %r\nFolder contained: %s"
+             % (mira_convert, ", ".join(os.listdir(mira_path))))
 
 mira_ver = get_version(mira_binary)
 if not mira_ver.strip().startswith("4.0"):