Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

python to exe - Python Code Bank


python to exe
python script that builds into an exe
                #!/usr/bin/python

import subprocess

build = raw_input("Enter the name of the python script to build into an exe: ")
subprocess.Popen("python Configure.py", shell=True).wait()
subprocess.Popen("python Makespec.py --onefile %s" % (build), shell=True).wait()
buildname = build.replace(".py", "")
subprocess.Popen("Build.py %s/%s.spec" % (buildname,buildname), shell=True).wait()
print "Executable can be found under %s/dist/%s.exe" % (buildname,buildname)
            
Comments
Sorry but there are no comments to display