From: Michael Hipp <michael@hi...> - 2006-06-07 19:55:43
> From: "Thomas Heller" <theller@...>
> Michael Hipp wrote:
> > Is there any way from within a program compiled by py2exe that you can =
> > whether you are running as a console or windows application?
> > That is, whether you were compiled with either:
> > windows=3D["myprog.py"]
> > -or-
> > console=3D["myprog.py"]
> You can examine the sys.frozen attribute which is set when a program froz=
> by py2exe runs.
> For a console app, this is 'console_exe', for a windows app, it is=20
Thank you, Thomas. That's exactly what I'm looking for.