python: Fixing builds as importable module

Signed-off-by: David Shah <[email protected]>
This commit is contained in:
David Shah
2018-06-08 11:17:04 +02:00
parent 7f330af9f3
commit c16a971c0f
5 changed files with 21 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# Run: PYTHONPATH=. python3 python/python_mod_test.py
from nextpnrpy_ice40 import Chip, ChipArgs, iCE40Type
args = ChipArgs()
args.type = iCE40Type.HX1K
chip = Chip(args)
for wire in chip.getWires():
print(chip.getWireName(wire))