diff options
author | jpathy <15735913+jpathy@users.noreply.github.com> | 2018-08-06 06:51:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 06:51:07 +0000 |
commit | 7db05b2cc1befba7e9d7afbb270dd503e8ec5857 (patch) | |
tree | 24458b2911a02237f1d9069f32d4d60e413c91d1 /backends/smt2 | |
parent | e275692e84c935d0cdf42c2a4adf7ac949a88132 (diff) | |
download | yosys-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.inc | 2 |
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 $@ |