'module' object has no attribute 'STARTUPINFO'

Viewed 2531

my program have a code:


info = subprocess.STARTUPINFO()
info.dwFlags |= subprocess.STARTF_USESHOWWINDOW
info.wShowWindow = subprocess.SW_HIDE

and my OS is kali linux. when I run program in python 2 or 3 has error:


AttributeError:'module' object has no attribute 'STARTUPINFO'

please help me. thanks.

1 Answers
Related