Mercurial > repos > peterjc > mira4_assembler
comparison tools/mira4/mira4_bait.py @ 12:a6a56440567c draft
Uploaded v0.0.2 preview 4, now using MIRA 4.0 (not RC), and sets MIRA4 environment variable during install.
| author | peterjc |
|---|---|
| date | Mon, 03 Feb 2014 06:25:35 -0500 |
| parents | 302d13490b23 |
| children | 7fcabeeca5df |
comparison
equal
deleted
inserted
replaced
| 11:02350bef2e99 | 12:a6a56440567c |
|---|---|
| 37 stop_err("Could not determine MIRA version:\n%s" % ver) | 37 stop_err("Could not determine MIRA version:\n%s" % ver) |
| 38 return ver.split("\n", 1)[0] | 38 return ver.split("\n", 1)[0] |
| 39 | 39 |
| 40 try: | 40 try: |
| 41 mira_path = os.environ["MIRA4"] | 41 mira_path = os.environ["MIRA4"] |
| 42 except ImportError: | 42 except KeyError: |
| 43 stop_err("Environment variable $MIRA4 not set") | 43 stop_err("Environment variable $MIRA4 not set") |
| 44 mira_binary = os.path.join(mira_path, "mirabait") | 44 mira_binary = os.path.join(mira_path, "mirabait") |
| 45 if not os.path.isfile(mira_binary): | 45 if not os.path.isfile(mira_binary): |
| 46 stop_err("Missing mirabait under $MIRA4, %r" % mira_binary) | 46 stop_err("Missing mirabait under $MIRA4, %r" % mira_binary) |
| 47 mira_ver = get_version(mira_binary) | 47 mira_ver = get_version(mira_binary) |
