mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-111201: Support pyrepl on Windows (#119559)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
13a5fdc72f
commit
0d07182821
15 changed files with 1020 additions and 49 deletions
|
@ -1,7 +1,11 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
CAN_USE_PYREPL = sys.platform != "win32"
|
||||
CAN_USE_PYREPL: bool
|
||||
if sys.platform != "win32":
|
||||
CAN_USE_PYREPL = True
|
||||
else:
|
||||
CAN_USE_PYREPL = sys.getwindowsversion().build >= 10586 # Windows 10 TH2
|
||||
|
||||
|
||||
def interactive_console(mainmodule=None, quiet=False, pythonstartup=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue