Right-click command pass argument to python script

五迷三道 提交于 2019-12-08 02:55:28

The %L should probably be %1. That is, you are taking the first argument passed to this command, and passing it as an argument to your Python script. This will be the name of the file you right-clicked.

If your Python script is prepared to accept multiple arguments (i.e. more than one selected file) you could use %* there.

@ at the beginning of the line means the command line won't be displayed on the screen, so it won't open a console window just to run the command. (If the Python script generates any output, the window will still appear, however.)

Not sure about the = sign following that; I haven't seen it and it's fiendishly hard to Google it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!