Mercurial > repos > peterjc > mira4_assembler
comparison tools/mira4/mira4.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 | 02350bef2e99 |
children | 7fcabeeca5df |
comparison
equal
deleted
inserted
replaced
11:02350bef2e99 | 12:a6a56440567c |
---|---|
34 return ver.split("\n", 1)[0].strip() | 34 return ver.split("\n", 1)[0].strip() |
35 | 35 |
36 | 36 |
37 try: | 37 try: |
38 mira_path = os.environ["MIRA4"] | 38 mira_path = os.environ["MIRA4"] |
39 except ImportError: | 39 except KeyError: |
40 stop_err("Environment variable $MIRA4 not set") | 40 stop_err("Environment variable $MIRA4 not set") |
41 mira_binary = os.path.join(mira_path, "mira") | 41 mira_binary = os.path.join(mira_path, "mira") |
42 if not os.path.isfile(mira_binary): | 42 if not os.path.isfile(mira_binary): |
43 stop_err("Missing mira under $MIRA4, %r" % mira_binary) | 43 stop_err("Missing mira under $MIRA4, %r" % mira_binary) |
44 mira_convert = os.path.join(mira_path, "miraconvert") | 44 mira_convert = os.path.join(mira_path, "miraconvert") |