1

I am a security student first starting out with Python. I've built my first program for my class and it is meant to be an exe so that it may run on any computer without having me install python onto it. The program is meant to go unnoticed by the user, but whenever it is executed a command windows pops up.

Does anyone know how to make a .py into a .exe that when launched would not bring up the command prompt?

I have already tried compiling a .pyw into a .exe and it still pops up the command prompt.

1
  • Have you tried using a tray icon? Commented Sep 15, 2014 at 4:56

1 Answer 1

1

Googling around the py2exe web site, you need to say setup(windows=['myapp.pyw']) instead of setup(console=['myapp.py']). I have problems finding out which page is saying that exactly, but hints are given here for example (search for "console"):

http://www.py2exe.org/index.cgi/FAQ

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.