Jun-14-2019, 10:20 PM
I don't see how I could be any clearer. Until I did the mod to Python.File my example wouldn't work when run as
D:\>pymsgtest
but it would work when I did
D:\>python
and then typed the two lines in. I presume the problem is related to the py.exe and pyw.exe in C:\Windows plus the fact that there are several copies of python on my computer, only one of which I actually intentionally installed. The others were installed along with Visual Studio, Open Office and JASC PaintShopPro. There is either a conflict between the versions or a config problem. Using Windows settings and looking at app defaults by file type, Windows just reports "Python" for both py and pyw extensions without showing which Python it is defaulting to. Thanks Microsoft.
D:\>pymsgtest
but it would work when I did
D:\>python
and then typed the two lines in. I presume the problem is related to the py.exe and pyw.exe in C:\Windows plus the fact that there are several copies of python on my computer, only one of which I actually intentionally installed. The others were installed along with Visual Studio, Open Office and JASC PaintShopPro. There is either a conflict between the versions or a config problem. Using Windows settings and looking at app defaults by file type, Windows just reports "Python" for both py and pyw extensions without showing which Python it is defaulting to. Thanks Microsoft.