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.
Advertisement
Answer
The STARTINFO
class is only available on Windows. Clearly stated in the docs:
The
STARTUPINFO
class and following constants are only available on Windows.