summaryrefslogtreecommitdiff
path: root/ybd.py
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2014-12-30 22:11:06 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-12-30 22:11:06 +0000
commitd220b65dce8b541a634327cfe1a72ed0be446d8d (patch)
tree3ce990d1d0bb352fa52b8d1b209d2298682c3ffd /ybd.py
parente2e679514d5b2cde8932a9b4419d6db11a450db7 (diff)
downloadybd-d220b65dce8b541a634327cfe1a72ed0be446d8d.tar.gz
Handle morph files directly, no need for morph-converter.sh
Diffstat (limited to 'ybd.py')
-rwxr-xr-xybd.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ybd.py b/ybd.py
index a3b6ecb..8fc5fd1 100755
--- a/ybd.py
+++ b/ybd.py
@@ -27,8 +27,7 @@ import app
from assembly import assemble
import sandbox
-path, target = os.path.split(sys.argv[1])
-target = target.replace('.def', '')
+target = os.path.splitext(os.path.basename(sys.argv[1]))[0]
arch = sys.argv[2]
with app.setup(target, arch):
with app.timer('TOTAL', 'YBD starts'):