WIP: Fixed Python 2 build and import.

This commit is contained in:
Matthias Koefferlein 2018-06-03 02:44:56 +02:00
parent bfbd8732f3
commit a522a14109
2 changed files with 2 additions and 2 deletions

View File

@ -71,6 +71,7 @@ equals(HAVE_QTBINDINGS, "1") {
SUBDIRS += gsiqt
gsiqt.depends += gsi
laybasic.depends += gsiqt
pymod.depends += gsiqt
}
plugins.depends += lay ext lib

View File

@ -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