diff options
author | Benedikt Tutzer <e1225461@student.tuwien.ac.at> | 2018-08-20 15:11:06 +0200 |
---|---|---|
committer | Benedikt Tutzer <e1225461@student.tuwien.ac.at> | 2018-08-20 15:11:06 +0200 |
commit | 6d18837d62436b297b34c20d5a005ef0b6a75da2 (patch) | |
tree | 2ca891b33af29e9e7f47679bc81cd1e02e28bd29 /kernel | |
parent | 5864db3c2bf353d4ee124d35aa2f911c4249edbc (diff) | |
download | yosys-6d18837d62436b297b34c20d5a005ef0b6a75da2.tar.gz yosys-6d18837d62436b297b34c20d5a005ef0b6a75da2.tar.bz2 yosys-6d18837d62436b297b34c20d5a005ef0b6a75da2.zip |
Python passes are now looked for in share/plugins and can be added by specifying a relative or absolute path
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/yosys.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc index 8380fe75d..e36c68752 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -495,10 +495,7 @@ void yosys_setup() PyImport_AppendInittab((char*)"libyosys", INIT_MODULE); Py_Initialize(); PyRun_SimpleString("import sys"); - PyRun_SimpleString("sys.path.append(\"./\")"); - //PyRun_SimpleString("import libyosys"); - //PyRun_SimpleString("sys.path.append(\"./plugins\")"); - //PyRun_SimpleString(("sys.path.append(\""+proc_share_dirname()+"plugins\")").c_str()); + PyRun_SimpleString(("sys.path.append(\""+proc_share_dirname()+"plugins\")").c_str()); #endif Pass::init_register(); |