python to exe - Python Code Bank
Uh oh. Looks like your using an ad blocker.
Our site is support by ads that help to pay our hosting costs. Please disable or whitelist us within your ad blocker to help us keep the site online.
All money generate by ads and donations is used to pay the hosting costs of the site, for more information about our income and expenses please see our donation page.
#!/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)