From a522a141090e9643a5f28bfa0aba035f81898e52 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 3 Jun 2018 02:44:56 +0200 Subject: [PATCH] WIP: Fixed Python 2 build and import. --- src/klayout.pro | 1 + src/pymod/pymodHelper.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/klayout.pro b/src/klayout.pro index 2a3e1760a..2cbe8cb65 100644 --- a/src/klayout.pro +++ b/src/klayout.pro @@ -71,6 +71,7 @@ equals(HAVE_QTBINDINGS, "1") { SUBDIRS += gsiqt gsiqt.depends += gsi laybasic.depends += gsiqt + pymod.depends += gsiqt } plugins.depends += lay ext lib diff --git a/src/pymod/pymodHelper.h b/src/pymod/pymodHelper.h index 034b8efdf..b0faf530b 100644 --- a/src/pymod/pymodHelper.h +++ b/src/pymod/pymodHelper.h @@ -39,8 +39,7 @@ static PyObject * module_init (const char *mod_name, const char *mod_description) { static pya::PythonModule module; - std::string mod_qname (std::string ("klayout.") + mod_name); - std::string import_text ("'import " + mod_qname + "'"); + std::string mod_qname (std::string ("pykl.") + mod_name); PYA_TRY