开发者

Use IDLE to launch script using the full file path

开发者 https://www.devze.com 2023-03-18 05:07 出处:网络
I\'m currently using Notepad++ to edit my python script, and I would like to be able to use a shortcut to make开发者_开发技巧 my script run in IDLE. Currently, I have:

I'm currently using Notepad++ to edit my python script, and I would like to be able to use a shortcut to make开发者_开发技巧 my script run in IDLE. Currently, I have:

cd C:\Python32
pythonw.exe Lib\idlelib\idle.pyw -c "$(FULL_CURRENT_PATH)"

When I try to run it, I get a Syntax error on the : in C:\Users\...

However, if I omit -c, IDLE properly opens up the file in it's editor and then I am able to run it.

I feel like I'm missing something simple, can anyone help me out?


Argument -c used to start the command, if you need to run a file, then use argument -r

I use this command: C:\Python27\Lib\idlelib\idle.bat -r "$(FULL_CURRENT_PATH)"

0

精彩评论

暂无评论...
验证码 换一张
取 消