Turn an application or script into a shell command

后端 未结 6 1923
走了就别回头了
走了就别回头了 2021-02-06 11:11

When I want to run my python applications from commandline (under ubuntu) I have to be in the directory where is the source code app.py and run the application with command
<

6条回答
  •  长发绾君心
    2021-02-06 11:43

    I'm pretty sure you have to make the script executable via chmod +x and put it in the PATH variable of your system.

提交回复
热议问题