mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Python passes are now looked for in share/plugins and can be added by specifying a relative or absolute path
This commit is contained in:
		
							parent
							
								
									5864db3c2b
								
							
						
					
					
						commit
						6d18837d62
					
				
					 2 changed files with 5 additions and 24 deletions
				
			
		|  | @ -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(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue