From bdd93135823ae1ef293d4be3eb50d0ca6bdeee9e Mon Sep 17 00:00:00 2001 From: David Shah Date: Thu, 7 Jun 2018 08:56:54 +0200 Subject: Allow loading and running Python files before GUI starts Signed-off-by: David Shah --- gui/mainwindow.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gui') 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; } -- cgit v1.2.3