|
|
@ -19,6 +19,7 @@ import shlex
|
|
|
|
import shutil
|
|
|
|
import shutil
|
|
|
|
import socket
|
|
|
|
import socket
|
|
|
|
import struct
|
|
|
|
import struct
|
|
|
|
|
|
|
|
import subprocess
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
import tokenize
|
|
|
|
import tokenize
|
|
|
|
import urllib
|
|
|
|
import urllib
|
|
|
@ -162,7 +163,9 @@ except ImportError:
|
|
|
|
def windows_enable_vt_mode(): # TODO: Do this the proper way https://bugs.python.org/issue30075
|
|
|
|
def windows_enable_vt_mode(): # TODO: Do this the proper way https://bugs.python.org/issue30075
|
|
|
|
if compat_os_name != 'nt':
|
|
|
|
if compat_os_name != 'nt':
|
|
|
|
return
|
|
|
|
return
|
|
|
|
os.system('')
|
|
|
|
startupinfo = subprocess.STARTUPINFO()
|
|
|
|
|
|
|
|
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
|
|
|
|
|
|
|
|
subprocess.Popen('', shell=True, startupinfo=startupinfo)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Deprecated
|
|
|
|
# Deprecated
|
|
|
|