Trying to edit a python file but the "edit command" has disappeared all of a sudden when i right click the file. How do I restore the edit command so i can continue working on my python files? I am using windows vista.
Thanks!
|
|
What exactly do you mean by the right click "edit command"? How did you originally install python and run and edit python files, which editor etc? Have you considered using an IDE? I find that for development using eclipse IDE with pyDev is really good. Either that or pyscripter is fairly well known - http://code.google.com/p/pyscripter/downloads/list If you want to continue as you were, try re-installing python, each version comes bundles with the Python IDLE which I expect is what you were using. - http://www.python.org/getit/ Then it should come back. If that fails:
See some more links below for IDEs Editors etc: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments |
|||||||||||
|
|
In Windows7 you can create the |
|||
|
|
|
I spent some time trying to figure this out. i finally got it. I'm running windows 7, but should be the same for vista, XP etc.
repeat this process but changing the search for the following querys:
|
||||
|
|
Sounds like you're using Windows. You need to associate IDLE as the editor for .py files. I don't know about Windows 7 but with XP:
|
|||
|
|
|
Right click on the file, choose Open with, select choose default program, and select python. Warning, this will attempt to run whatever script you are trying to open from the command prompt (but you can just x this out). After that, the computer should recognize the file as a python file and give you the "Edit with Idle" option again. |
||||
|
|
|
In your registry find this entry: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Python.File\shell\Edit with IDLE\command and replace the path to pythonw.exe with the path of the version you want to use by default. I'm guessing this path might have been pointing to something that no longer exists for OP. |
|||
|
|