3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 04:43:40 +00:00

The share directory cannot be searched when used as a Python library, only in shell mode

This commit is contained in:
Benedikt Tutzer 2018-08-20 15:27:50 +02:00
parent 6d18837d62
commit d41c68ee5a
2 changed files with 8 additions and 1 deletions

View file

@ -495,7 +495,6 @@ void yosys_setup()
PyImport_AppendInittab((char*)"libyosys", INIT_MODULE);
Py_Initialize();
PyRun_SimpleString("import sys");
PyRun_SimpleString(("sys.path.append(\""+proc_share_dirname()+"plugins\")").c_str());
#endif
Pass::init_register();