starting Python IDLE from command line to edit scripts

后端 未结 7 1715
北荒
北荒 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:50

    Make a new text file, and put something like this in it:

    C:\Python26\Lib\idlelib\idle.pyw "C:\file1.py" "C:\file2.py"
    

    In your actual script, you'll replace "C:\file1.py" and "C:\file2.py" with your files' paths, save as a .bat, and then launch it. That should do what you want.

提交回复
热议问题