Problem in Building a Simple EXE

P

ParE

Hello,

I wrote a small script which I have been trying to
convert to an Executable. I have tried py2exe and
McMillians. Both will convert it just fine but when I
run it on a machine that does not have Python
installed it will run the script twice. Any ideas on
how I may fix this?

Paras



__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/
 
P

Peter Hansen

ParE said:
I wrote a small script which I have been trying to
convert to an Executable. I have tried py2exe and
McMillians. Both will convert it just fine but when I
run it on a machine that does not have Python
installed it will run the script twice. Any ideas on
how I may fix this?

I think (unless someone else recognizes this problem) that you'll have
to explain more about the situation. What does "run twice" really mean?
How are you running it (command line, and icon, or what)? Have you
tried reducing your script down to the smallest version that still
causes the undesirable behaviour?

For example, if you use the same techniques to compile, install, and run
the following script, does it still "run twice" (whatever that means)?

if __name__ == '__main__':
print "I'm running now."


-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,240
Messages
2,571,205
Members
47,844
Latest member
ChanceGris

Latest Threads

Top