The Disappearing Program?

CM cmpython at gmail.com
Fri Feb 19 13:56:37 EST 2010


On Feb 19, 12:21 pm, "W. eWatson" <wolftra... at invalid.com> wrote:
> On 2/19/2010 7:16 AM, Mark Lawrence wrote:> Andre Engels wrote:
> >> On Fri, Feb 19, 2010 at 3:19 PM, Mark Lawrence
> >> <breamore... at yahoo.co.uk> wrote:
> >>> Andre Engels wrote:
> >>>> On Fri, Feb 19, 2010 at 12:20 PM, W. eWatson <wolftra... at invalid.com>
>
> ...
> tories, or even the whole hard drive, for snowball.*. Then the OP> would know exactly what he has or hasn't got.
>
> > HTH.
>
> > Mark Lawrence
>
> Here's the answer. Consider this folder.
>
> Afolder
>    abc.py
>    hello.py
>
> I now apply py2exe steps to produce an  "executable" for abc. The folder
> now changes to
>
> Afolder
>    build
>    dist
>    abc.py
>    hello.py
>
> build are two new folders. dist contains abc.exe.
>
> Somehow when I type abc at the command prompt, this follows a path to
> dist, and finds abc.exe, where it executes properly.
> Cute, eh? I have no explanation for it.

Are you sure it's executing abc.exe?  If you are at a Python command
prompt within the "DOS shell" and you just type just abc, I think what
is happening is you are running abc.py, NOT abc.exe.

py2exe creates a dist folder (short for "distributables") by default
and puts your .exe into it along with whatever other files are needed
to run your application.  Depending on how you set the bundling
options, this may be a lot of things or just 1-2 other things.

Che



More information about the Python-list mailing list