Commits

Anthony Tuininga  committed c435e2b

Ensure the postinstall script works on Python 3.x as well as Python 2.x.

  • Participants
  • Parent commits 9c31af2
  • Tags 4.3.1

Comments (0)

Files changed (1)

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()