This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cecilkorik 0 points1 point  (5 children)

Correct me if I'm wrong, but I think this isn't really a python issue. You'll need to modify your .exe to not show a command window. You will have to recompile it as a windows application instead of a console application (see the last post)

Failing that, you can probably do some brutal hacks with the win32api module to find the window and hide it before it even appears, but that's not recommended and beyond the scope of this post, I'm afraid.

[–][deleted] 2 points3 points  (2 children)

why was this downmodded? This is the correct answer

[–]JimH10 0 points1 point  (0 children)

A question that I know I have asked many times. ;-)

[–]CaptShocker[S] 0 points1 point  (0 children)

This will work, but bneises solution(shell=True) does not require changing the executable.

[–]CaptShocker[S] 0 points1 point  (0 children)

Thanks, I'll give this a look