Making a py2exe for your Windows brethren?

home | blog | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts

- Careful Chrome users, this search box might be "Not secure"

If you charge ahead and use subprocess.Popen and think that sys.executable points to the right place, think again.
It actually points to your exe when frozen!
Makes for interesting recursion, so here is a fix:
Get the path luke:
Important bit reposted below. Attribution to user881185 on StackOverflow.

In case that link breaks before this blog goes away:

child = subprocess.Popen(app_path)

Here is some info from the py2exe site on how to do the path in case of unicode troubles: