#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    40
    Rep Power
    10

    running .exe in py IDE


    hello guys..
    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

    thanks...
  2. #2
  3. I <3 ASCII
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Aug 2003
    Posts
    2,400
    Rep Power
    1233
    Are you sure you can run the .exe in the IDE and not just the python code that created the exe?

    -MBirchmeier
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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 .
    programming language development: www.netytan.com Hula

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    40
    Rep Power
    10
    it means that the only thiog i can do is call the .exe in py code?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    40
    Rep Power
    10
    it means that the only thing i can do is call the .exe in py code?
  10. #6
  11. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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.
    programming language development: www.netytan.com Hula

  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    40
    Rep Power
    10
    thank you...

IMN logo majestic logo threadwatch logo seochat tools logo