Download chips/yosys/pyosys/modinit.py from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/pyosys/modinit.py
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/pyosys/modinit.py
-
curl -L -o modinit.py https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/pyosys/modinit.py
530 Bytes
| import os | |
| import sys | |
| sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL) | |
| __dir__ = os.path.abspath(os.path.dirname(__file__)) | |
| sys._pyosys_dir = os.path.abspath(__dir__) | |
| bin_ext = ".exe" if os.name == "nt" else "" | |
| _share_candidate = os.path.join(__dir__, "share") | |
| if os.path.isdir(_share_candidate): | |
| sys._pyosys_share_dirname = _share_candidate + os.path.sep | |
| _abc_candidate = os.path.join(__dir__, f"yosys-abc{bin_ext}") | |
| if os.path.isfile(_abc_candidate): | |
| sys._pyosys_abc = _abc_candidate | |
| __all__ = ["libyosys"] # noqa: F822 | |