Fix Python consoles cannot be created.
Fixes #8899 https://gitlab.com/kicad/code/kicad/issues/8899
This commit is contained in:
parent
435b1720c3
commit
c20a76f3e2
|
@ -110,7 +110,7 @@ class PcbnewPyShell(editor.EditorNotebookFrame):
|
||||||
|
|
||||||
"""Keep pydoc output on stdout instead of pager and
|
"""Keep pydoc output on stdout instead of pager and
|
||||||
place the stdout into the editor window """
|
place the stdout into the editor window """
|
||||||
import pydoc, sys
|
import pydoc
|
||||||
self._keep_stdin = sys.stdin
|
self._keep_stdin = sys.stdin
|
||||||
pydoc.pager = pydoc.plainpager
|
pydoc.pager = pydoc.plainpager
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue