November 18th, 2004, 03:46 AM
running .exe in py IDE
i been convert a file (test.py) to exe file (test.exe) by using py2exe..
i know i can run / call the exe file from command prompt, but i wish to run it in python IDE..
can anyone give me some ideas?
i'm using win XP Pro + PythonWin 2.3
November 18th, 2004, 08:17 AM
Are you sure you can run the .exe in the IDE and not just the python code that created the exe?
November 18th, 2004, 05:11 PM
Hate to say it, but other than invoking exe form command line using the system() or popen() functions you can't; IDLE just doesn't offer you that feature as far as I'm aware .
November 18th, 2004, 07:52 PM
it means that the only thiog i can do is call the .exe in py code?
November 18th, 2004, 07:53 PM
it means that the only thing i can do is call the .exe in py code?
November 19th, 2004, 02:45 AM
Yes, since the IDLE GUI doesn't offer a way of starting exes the only way to invoke one is though the Python shell which IDLE wraps itself around. If you want to run the exe then just launch the command line/shell/terminal and type the path to the exe. Or, double click the exe if your using a windows machine.
November 21st, 2004, 07:01 PM