0

I have a python program that run without console in app.pyw file format. I converted that program to .exe file using py2exe using this script

from distutils.core import setup
import py2exe

setup(console=['app.pyw'])

now the app.exe application working fine,but app will not work without console window. I want to run my app without console window in .exe format

3 Answers 3

1

(I cant add a comment ) I suggest that you read the module 'distutils.core' where setup is defined.
The para 'console=['app.pyw']' might be your problem.

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

Comments

1

Here you don't need to add .pyw just edit your py2exe setup script

replace console=

by windows=

should be something like that:

from distutils.core import setup
import py2exe

setup(windows=["app.pyw"])

1 Comment

But i could have been more specific Ty mou
0

try setup(windows=["name"]) instead of console. When theres no GUI window to run maybe itl hide it..

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.