DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Python (http://www.daniweb.com/forums/forum114.html)
-   -   Py2exe (http://www.daniweb.com/forums/thread154010.html)

pywriter Oct 28th, 2008 12:51 pm
Py2exe
 
Hi
Excuse me but i came again
Can someone learn me how to work with py2exe?
thanks

evstevemd Oct 28th, 2008 12:59 pm
Re: Py2exe
 
I think I posted somewhere GUI versions and If not mistaken, ene posted the coding version. Try to search the forum

tyincali Oct 28th, 2008 1:01 pm
Re: Py2exe
 
I'll assume you have already read the tutorial at:

http://www.py2exe.org/index.cgi/Tutorial

basically, once you have py2exe installed you need to make a script to build the exe. Make a file called setup.py in the directory with the python file you want to make an exe out of. put the following inside setup.exe:
    from distutils.core import setup
    import py2exe
   
    setup(console=['yourscript.py'])

replacing yourscript.py with your scripts name.

then run it from the command line with

    python setup.py py2exe
If it completes succesfully you should now have an exe in your folder.

Paul Thompson Oct 28th, 2008 4:56 pm
Re: Py2exe
 
If your using a GUI you may want to take a look at this piece of code:
http://www.daniweb.com/forums/post623822-10.html


All times are GMT -4. The time now is 4:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC