From 6fffe24177f9b99d6c332c18e343648cf33d4397 Mon Sep 17 00:00:00 2001 From: David Shah Date: Wed, 3 Apr 2019 16:08:33 +0100 Subject: generic: GUI Python bindings Signed-off-by: David Shah --- gui/pythontab.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui/pythontab.cc') diff --git a/gui/pythontab.cc b/gui/pythontab.cc index 827f1907..c83f1ece 100644 --- a/gui/pythontab.cc +++ b/gui/pythontab.cc @@ -96,9 +96,10 @@ void PythonTab::newContext(Context *ctx) console->clear(); pyinterpreter_preinit(); - init_python("nextpnr", !initialized); + init_python("nextpnr", true); pyinterpreter_initialize(); pyinterpreter_aquire(); + init_python("nextpnr", false); python_export_global("ctx", ctx); pyinterpreter_release(); -- cgit v1.2.3