mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Updates for pyosys on Mac
This commit is contained in:
parent
a8fe47ea50
commit
0fa8098ff4
2 changed files with 5 additions and 3 deletions
|
@ -555,8 +555,10 @@ void yosys_setup()
|
|||
#undef X
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
PyImport_AppendInittab((char*)"libyosys", INIT_MODULE);
|
||||
Py_Initialize();
|
||||
if (!Py_IsInitialized()) {
|
||||
PyImport_AppendInittab((char*)"libyosys", INIT_MODULE);
|
||||
Py_Initialize();
|
||||
}
|
||||
PyRun_SimpleString("import sys");
|
||||
signal(SIGINT, SIG_DFL);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue