“Edit with IDLE” option missing from context menu

前端 未结 11 2001
盖世英雄少女心
盖世英雄少女心 2020-12-09 10:46

I have Python 2.7.5 that installed with ArcGIS 10.2.2. When I first right-clicked a .py script I\'d previously written it listed the \"Edit with IDLE\" option in the contex

11条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 11:14

    Directly from: https://superuser.com/questions/343519/python-idle-disappeared-from-the-right-click-context-menu

    Here's a reg file to add the command to edit with IDLE for Python.File (.py) and Python.NoConFile (.pyw) file types. It's for Python 2.7, installed in C:\Python27, so substitute the paths to pythonw.exe and idle.pyw that are relevant to your installation. Save it to a .reg file. Then right-click and choose Merge.

    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command]
    @="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
    
    [HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit with IDLE\command]
    @="\"C:\\Python27\\pythonw.exe\" \"C:\\Python27\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
    

提交回复
热议问题