Source

cx_Freeze / cxfreeze-postinstall

Diff from to

File cxfreeze-postinstall

     fullName = os.path.join(scriptDir, fileName)
     lines = open(fullName).readlines()
     outFile = open(fullName, "w")
-    print >> outFile, "#!" + python
+    outFile.write("#!%s\n" % python)
     outFile.writelines(lines[1:])
     outFile.close()