How to give executable permission to all Python scripts in Linux?

后端 未结 4 894
说谎
说谎 2020-12-21 04:41

Suppose I have a python script called a.py like this:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author    : Bhishan Poudel
# Date             


        
4条回答
  •  臣服心动
    2020-12-21 05:30

    Try this chmod +x *.py it works on my PC(OS:Ubuntu 20.4), Also i am using #! /usr/bin/env python3 shebang

提交回复
热议问题