Adjust init for Python >=3.6

This commit is contained in:
Seth Hillbrand 2021-04-05 10:56:07 -07:00
parent 88e4b7f7c4
commit e151130356
1 changed files with 2 additions and 2 deletions

View File

@ -59,9 +59,9 @@ class KiCadPyShell(KiCadEditorNotebookFrame):
"""
self.notebook = KiCadEditorNotebook(parent=self.parent)
intro = 'Py %s' % version.VERSION
import imp
import types
import builtins
module = imp.new_module('__main__')
module = types.ModuleType('__main__')
module.__dict__['__builtins__'] = builtins
namespace = module.__dict__.copy()