aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-07 08:56:54 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-07 08:56:54 +0200
commitbdd93135823ae1ef293d4be3eb50d0ca6bdeee9e (patch)
tree286f8f2ead78b5b20afd8aa8feaffe7e97df9f7f /gui
parentc18f0b1c2286d737f3ace47d4f843ef523ba4b97 (diff)
downloadnextpnr-bdd93135823ae1ef293d4be3eb50d0ca6bdeee9e.tar.gz
nextpnr-bdd93135823ae1ef293d4be3eb50d0ca6bdeee9e.tar.bz2
nextpnr-bdd93135823ae1ef293d4be3eb50d0ca6bdeee9e.zip
Allow loading and running Python files before GUI starts
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'gui')
-rw-r--r--gui/mainwindow.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/gui/mainwindow.cc b/gui/mainwindow.cc
index 4404fc5a..b72a0851 100644
--- a/gui/mainwindow.cc
+++ b/gui/mainwindow.cc
@@ -11,9 +11,6 @@ MainWindow::MainWindow(QWidget *parent) :
ui(new Ui::MainWindow)
{
ui->setupUi(this);
- emb::append_inittab();
- arch_appendinittab();
- Py_Initialize();
PyImport_ImportModule("emb");
write = [this] (std::string s) {
@@ -27,7 +24,6 @@ MainWindow::MainWindow(QWidget *parent) :
MainWindow::~MainWindow()
{
- Py_Finalize();
delete ui;
}