python: Add interactive.py for a REPL during PnR

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-11-11 09:42:22 +00:00
parent 6a335411da
commit 0cbc25f74a

6
python/interactive.py Normal file
View File

@ -0,0 +1,6 @@
# Pass this file to one of the Python script arguments (e.g. --pre-place interactive.py)
# to drop to an command-line interactive Python session in the middle of place and route
import code
print("Press Ctrl+D to finish interactive session")
code.interact(local=locals())