#26741: [desktop] Update the project python bootstrap to reset PATH

Make sure applications are launched with the proper DllDirectory set.
But doesn't the `if sys.platform == "win32":` solve it for other operating systems? They will never execute that code. Or?