aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.cc
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2020-11-14 17:17:25 +0100
committerGitHub <noreply@github.com>2020-11-14 17:17:25 +0100
commit15f35c19b86e14e6fec97ee152232429ba0cba22 (patch)
tree26924d3a9c129004a1356d5a45cee0d6d6060cc3 /gui/pythontab.cc
parent06555aa00327061423af120f1b017f9c37d0c051 (diff)
parentbb16fdb4bba86ff54df177aaf8b624da8d6677d0 (diff)
downloadnextpnr-15f35c19b86e14e6fec97ee152232429ba0cba22.tar.gz
nextpnr-15f35c19b86e14e6fec97ee152232429ba0cba22.tar.bz2
nextpnr-15f35c19b86e14e6fec97ee152232429ba0cba22.zip
Merge pull request #515 from YosysHQ/python_improvements
Python code cleanup
Diffstat (limited to 'gui/pythontab.cc')
-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();