3
0
Fork 0
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:
Akash Levy 2024-04-09 07:16:11 -07:00
parent a8fe47ea50
commit 0fa8098ff4
2 changed files with 5 additions and 3 deletions

View file

@ -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