[Tutor] freeze
Jacob S.
keridee at jayco.net
Sat Feb 5 22:10:33 CET 2005
Hey! Good question! I have no idea.
Jacob Schmidt
P.S. Here's a cool setup script for py2exe if you want to try it though.
### setup.py ###
# Run the build process by entering 'setup.py py2exe' or
# 'python setup.py py2exe' in a console prompt.
from distutils.core import setup
import py2exe
import os
def getdir():
current = os.getcwd()
m = 'y'
while m == 'y':
print "Current directory is: %s" % current
m = raw_input("Do you wish to change the directory? ")
if m == 'y':
n = raw_input("What is the new directory? ")
if not n.count(":"):
current = os.path.join(current,n)
else:
current = n
os.chdir(current)
getdir()
listed = []
while 1:
ask = raw_input('What is the file you want as an executable? ')
if ask == 'quit' or ask == 'stop':
break
else:
listed.append(os.path.join(desktop,ask))
os.chdir(uck)
setup(console = listed)
## End of setup.py ###
More information about the Tutor
mailing list