aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-06 10:44:21 +0200
committerGitHub <noreply@github.com>2018-08-06 10:44:21 +0200
commit7b48da0bfc9f5974c3ed40191ce6513e8108a7be (patch)
treefbc7ac663ae78ec50036c23368265cba6a5a3921
parent63f4cc38eb3afe66642fea8d130fda623c6f825a (diff)
parent7db05b2cc1befba7e9d7afbb270dd503e8ec5857 (diff)
downloadyosys-7b48da0bfc9f5974c3ed40191ce6513e8108a7be.tar.gz
yosys-7b48da0bfc9f5974c3ed40191ce6513e8108a7be.tar.bz2
yosys-7b48da0bfc9f5974c3ed40191ce6513e8108a7be.zip
Merge pull request #600 from jpathy/patch-1
Use `realpath`
-rw-r--r--backends/smt2/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/smt2/Makefile.inc b/backends/smt2/Makefile.inc
index eacda2734..dce82f01a 100644
--- a/backends/smt2/Makefile.inc
+++ b/backends/smt2/Makefile.inc
@@ -6,7 +6,7 @@ ifneq ($(CONFIG),emcc)
TARGETS += yosys-smtbmc
yosys-smtbmc: backends/smt2/smtbmc.py
- $(P) sed 's|##yosys-sys-path##|sys.path += [os.path.dirname(__file__) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' < $< > $@.new
+ $(P) sed 's|##yosys-sys-path##|sys.path += [os.path.dirname(os.path.realpath(__file__)) + p for p in ["/share/python3", "/../share/yosys/python3"]]|;' < $< > $@.new
$(Q) chmod +x $@.new
$(Q) mv $@.new $@