I am aware how to convert a Python script to an Windows Executable file(.exe) using Py2Exe, PyInstaller and etc.
But is there a way to convert a Python script to an .exe that will work on all the following versions of Windows: Windows XP to Windows 8?
Keep in mind my Python script is very simple and does NOT use any libraries like pyGTK or wxPython. Its just a simple console script that lists all files in a directory and writes it to a file.
So if I were to compile the following script using Py2Exe on my Windows 7 64bit computer, would that .exe work on ALL the following versions of Windows: Windows XP to Windows 8? I am hoping I wont need to create a 32bit version then a 64bit version.
import os
def main():
#TODO: get command line arguments
files = listdir("\")
out = open('outfile.txt', 'w')
out.write(files)
out.close()
main()