Code Point
July 31, 2010, 10:57:06 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Geshi Sintax Hilighting Mod Installed. Tens of languages available.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to get .exes to work.  (Read 2815 times)
Tim
Jr. Member
*

Karma: 0
Offline Offline

Posts: 2


« on: April 17, 2008, 09:40:36 AM »

Ok, after converting a python program to an .exe with py2exe.

The program will run on a computer with Python installed on it no worries, however if python is not installed it starts and finishes in the blink of an eye. even with
Code
raw_input('Press Enter to exit ')
added.

The program is the one that works out mileage for cars that I changed to aus things from a tutorial on the net that i can't find anymore.
Logged
Alter Lobo
Global Moderator
Jr. Member
*****

Karma: 10
Offline Offline

Posts: 65


« Reply #1 on: April 17, 2008, 10:21:13 AM »

A program compiled with py2exe has its own interpreter and don't need an installed interpreter.

Try running it not in the IDLE interface but in a common DOS prompt.

Or try this:
Code
os.system("pause")
 
Logged
Tim
Jr. Member
*

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: April 17, 2008, 11:48:30 AM »

i think I need to read more on this. Thank you for your help, it is appreciated.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!