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
评论列表
文章目录