Python file Right button cannot find the idle open item workaround

Source: Internet
Author: User
Often encounter, double-click the. py file can not run, or right-click the item without idle editing, in the WIN7 system is more common.
Double-clicking the *.py file does not work:
Right-click Open with, select Default Programs, browse to find and select Python.exe

Right-click does not have an idle workaround:
1. If the Python environment is set up soon, PYTHONPATH, and the Lib/site-packages directory does not have many library files, you can reload
2. Modify the registration form,
I. Modify the registry by using the Regedit command

The code is as follows:


Ii. Modifying the registry by batch file

The code is as follows:

Windows Registry Editor Version 5.00

@= "&edit with IDLE"

@= "\" c:\\python27\\pythonw.exe\ "\" c:\\python27\\lib\\idlelib\\idle.pyw\ "-e \"%1\ ""

Save the above file to Python.reg, double click, will also modify the registry, restart effective
Note: replace it with your own Python installation directory.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.