From: Kevin A. <al...@se...> - 2004-05-13 20:35:10
|
On May 13, 2004, at 12:24 PM, Tim Black wrote: > On my system I have made the *.py/*.pyw file associations as the =20 > codeEditor readme indicates, but I have trouble running some of the =20= > PythonCard tools using pythonw.exe. This is quite bizarre. The only thing I can think of is that you have =20= two different versions of Python installed on your system and the .pyw =20= file association is for some older version of Python. I run the =20 codeEditor.py all the time using pythonw.exe and have done so since I =20= first wrote codeEditor. I run the resourceEditor this way as well. =20 Perhaps the real problem is the specific association for the codeEditor =20= is broken. The readme.txt document refers to an older version of Python =20= than you're using, so for your system it should say: C:\Python23\pythonw.exe =20 C:\Python23\Lib\site-=20 packages\PythonCardPrototype\tools\codeEditor\codeEditor.py "%1" If for some reason you installed Python into your Program Files =20 directory you would have a different path and have to put quotes around =20= the path, but it would be better if you simply uninstalled Python and =20= reinstalled it into the default Python23 directory. > codeEditor: runs fine as a .py but when I change its extension to .pyw = =20 > and open it or if I execute the .py file manually with pythonw.exe =20 > from command line, nothing happens, the python interpreter returns =20 > immediately. No GUI, no errors. > > =A0 > resourceEditor: runs fine as a .py but when I change its extension to =20= .pyw and open it or if I execute the .py file manually with pythonw.exe =20= from command line, the main resource editor window appears but the app =20= is frozen and won=92t do anything. I cannot close the app, and must shut = =20 down the process via Windows Task Manager. > > =A0 > > textEditor: runs fine as a .py and a .pyw both via association and =20 > from command line. > > =A0 > > Any ideas? I am using Windows XP, Python version 2.3.3, wxPython =20 > version 2.4.2.4, PythonCardPrototype version 0.7.2. > Again, this seems quite bizarre, so I would like to know for sure that =20= you only have one version of Python installed and it is the right one. =20= Also, you might reply with the specific command-line you tried that =20 failed. I also suggest installing PythonCard 0.7.3.1. You should probably =20 uninstall PythonCard and delete the site-packages\PythonCardPrototype =20= dir for good measure just in case there is some problem being caused by =20= the .pyc files. ka |