starting Python IDLE from command line to edit scripts

后端 未结 7 1770
北荒
北荒 2021-01-12 02:25

I\'ve tried many variations of this command: idle.py -e filepath, but it simply starts IDLE like normal, not opening any extra windows for editing, and not thro

7条回答
  •  南方客
    南方客 (楼主)
    2021-01-12 02:46

    You need to do as stated in the main.py file of the idelib folder (C:\Python33\Lib\idlelib), at least on the python 3.3 version explains that:

    IDLE main entry point
    
    Run IDLE as python -m idlelib
    

    So with python -m idlelib you will be able to open and edit the script with idle. I haven't checked with previous versions but it could be the same comand

    This is also documented on the changelog of the version 3.3.3

提交回复
热议问题