Download chips/yosys/tests/pyosys/test_import.py from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/pyosys/test_import.py
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/pyosys/test_import.py
-
curl -L -o test_import.py https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/pyosys/test_import.py
310 Bytes
| import os | |
| import sys | |
| from pyosys import libyosys as ys | |
| print(ys) | |
| ys.log("Hello, world!\n") | |
| from pyosys.libyosys import log | |
| print(log) | |
| log("Goodbye, world!\n") | |
| import pyosys | |
| if os.path.basename(sys.executable) == "yosys": | |
| # make sure it's not importing the directory | |
| assert "built-in" in repr(pyosys) | |