test_create_wrappers.py 文件源码

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

项目:exec-wrappers 作者: gqmelo 项目源码 文件源码
def _create_executable_file(filepath):
    if sys.platform == 'win32':
        filepath = filepath.new(ext='bat')

    filepath.write('')
    if sys.platform != 'win32':
        filepath.chmod(filepath.stat().mode | stat.S_IXUSR)

    return filepath
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号