From 6725f2d6469989af653e7d1131a217e64c474eea Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Thu, 10 Oct 2024 13:34:39 -0700 Subject: [PATCH] Move init_share_dirname to after Python is initialized --- kernel/yosys.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/yosys.cc b/kernel/yosys.cc index af80d4cd4..529168552 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -548,8 +548,6 @@ void yosys_setup() if(already_setup) return; already_setup = true; - init_share_dirname(); - init_abc_executable_name(); #define X(_id) RTLIL::ID::_id = "\\" # _id; #include "kernel/constids.inc" @@ -567,6 +565,9 @@ void yosys_setup() } #endif + init_share_dirname(); + init_abc_executable_name(); + Pass::init_register(); yosys_design = new RTLIL::Design; yosys_celltypes.setup();