aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2
diff options
context:
space:
mode:
authorjpathy <15735913+jpathy@users.noreply.github.com>2018-08-06 06:51:07 +0000
committerGitHub <noreply@github.com>2018-08-06 06:51:07 +0000
commit7db05b2cc1befba7e9d7afbb270dd503e8ec5857 (patch)
tree24458b2911a02237f1d9069f32d4d60e413c91d1 /backends/smt2
parente275692e84c935d0cdf42c2a4adf7ac949a88132 (diff)
downloadyosys-7db05b2cc1befba7e9d7afbb270dd503e8ec5857.tar.gz
yosys-7db05b2cc1befba7e9d7afbb270dd503e8ec5857.tar.bz2
yosys-7db05b2cc1befba7e9d7afbb270dd503e8ec5857.zip
Use `realpath`
Use `os.path.realpath` instead to make sure symlinks are followed. This is also required to work for nix package manager.
Diffstat (limited to 'backends/smt2')
-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 $@