How to make python script executable on osx?

后端 未结 4 1212
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 04:19

I just want to make my script as an application. double-click and run instead of running in terminal. I have done it before with automator but now, on el capitan it doesn\'t

4条回答
  •  醉酒成梦
    2021-01-14 04:35

    @https://stackoverflow.com/users/7885903/lucas-mendes-mota-da-fonseca

    To hide the terminal window, I believe you could rename the .py to .pyw and call that.

    https://stackoverflow.com/a/34739687/6713477

提交回复
热议问题