setup.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:scorep_binding_python 作者: score-p 项目源码 文件源码
def add_exec(file_path):
    """Add execution rights for user, group and others to the given file"""

    print("change permissions")
    # change Permission with bitwies or and the constants from stat modul
    os.chmod(file_path, stat.S_IRUSR | stat.S_IWUSR|  stat.S_IXUSR | \
            stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)

# global vars are very bad but I think the only solution for this
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号