| | |
-completly new- Exe question
![]() |
I think vegaseat had this posted some time ago, read the comments for instructions:
python Syntax (Toggle Plain Text)
# Py2Exe version 0.6.3 setup file for console programs. # # If this is a windows GUI application replace the last line with # windows = [{"script": 'myFile.py'}] ) # # Enter the file name of your own .py code file in the last line, # lets say it's test1.py # so the last line should be: console = [{"script": 'test1.py'}] ) # then save this program as p2e_test1.py to the same directory # where your code file is located. # # Now run p2e_test1.py ... # # Two subfolders will be created, called build and dist. # The dist folder contains your .exe file, MSVCR71.dll and # w9xpopen.exe (needed for os.popen() only) # Your .exe file contains your byte code, all needed modules and # the Python interpreter. # The MSVCR71.dll can be distributed, but is often already in the # system32 folder. # The build folder can be deleted. from distutils.core import setup import py2exe import sys # no arguments if len(sys.argv) == 1: sys.argv.append("py2exe") # creates a standalone .exe file, no zip files setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1, "bundle_files": 1}}, zipfile = None, # replace myFile.py with your own code filename here ... console = [{"script": 'myFile.py'}] )
drink her pretty
![]() |
Other Threads in the Python Forum
- Previous Thread: Complete noob - ping in python
- Next Thread: Autoupdater in wxPython
| Thread Tools | Search this Thread |
advanced aliased bash beginner bits calling casino changecolor class clear command convert corners count csv cturtle cursor def definedlines dictionary digital dynamic dynamically event events examples external file float format frange function google gui hints homework i/o iframe import info input java line linux list lists loop matching mouse multiple number numbers obexftp output parsing path port prime programming projects py py2exe pygame pygtk python random rational raw_input recursion return scrolledtext signal singleton skinning stderr string strings subprocess table tails terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode urllib urllib2 valueerror variable voip web-scrape whileloop word wxpython






