Can Karakus
Can Karakus

Reputation: 21

Pyinstaller opens command prompt

I'm still a beginner with coding so maybe this question will be trivial for some of you. My apologies in advance.

For a project, i made a webcrawler using python and selenium, with an user interface made with Tkinter. I use a chromedriver to open chrome for the webcrawling part.

I converted my Tkinter file with pyinstaller into an executable file. When doing so, i typed the following flags: --onefile -w

I was told that the latter one prevents opening a command prompt when running the file, however, when i run the executable, my pc opens the command prompt for the chromedriver. How can i fix this?

Upvotes: 0

Views: 1653

Answers (1)

Eric Mathieu
Eric Mathieu

Reputation: 631

-w will prevent the creation of a console for the main exe, not for the execution of the chromedriver. You should have a look at ChromeDriver console application hide thread for removing the console created by chromedriver

Upvotes: 1

Related Questions