0

I have made EXE File using pyinstaller, and option is pyinstaller ams.py -w -F --icon=icon.ico --add-binary "IEDriverServer.exe";"." --noconsole.

And python code is,

if getattr(sys, 'frozen', False): IEdriver_path = os.path.join(sys._MEIPASS, "IEDriverServer.exe") driver = webdriver.Ie(IEdriver_path)

And then start the EXE file, "Temp_MEI175xxx\IEDriverServer.exe" console is made. when I off that console, program is ended.

Is there a way to hide console window?

hyun
  • 1
  • 1
  • I soved that problem my self, "IEdriver_path = os.path.join(sys._MEIPASS, "IEDriverServer.exe") service = Service(IEdriver_path) service.creationflags = CREATE_NO_WINDOW" – hyun Oct 13 '22 at 23:07

0 Answers0