aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2020-11-14 16:34:12 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2020-11-14 16:34:12 +0100
commitbb16fdb4bba86ff54df177aaf8b624da8d6677d0 (patch)
tree26924d3a9c129004a1356d5a45cee0d6d6060cc3 /gui
parent06555aa00327061423af120f1b017f9c37d0c051 (diff)
downloadnextpnr-bb16fdb4bba86ff54df177aaf8b624da8d6677d0.tar.gz
nextpnr-bb16fdb4bba86ff54df177aaf8b624da8d6677d0.tar.bz2
nextpnr-bb16fdb4bba86ff54df177aaf8b624da8d6677d0.zip
Python code cleanup
Diffstat (limited to 'gui')
-rw-r--r--gui/pythontab.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/pythontab.cc b/gui/pythontab.cc
index c83f1ece..1d53dc64 100644
--- a/gui/pythontab.cc
+++ b/gui/pythontab.cc
@@ -96,10 +96,9 @@ void PythonTab::newContext(Context *ctx)
console->clear();
pyinterpreter_preinit();
- init_python("nextpnr", true);
+ init_python("nextpnr");
pyinterpreter_initialize();
pyinterpreter_aquire();
- init_python("nextpnr", false);
python_export_global("ctx", ctx);
pyinterpreter_release();