diff --git a/script.py b/script.py index b1a4cac46..f96b33d08 100644 --- a/script.py +++ b/script.py @@ -86,8 +86,11 @@ def github_manager(): release.upload_asset( content_type='application/text', name=file.split('/')[-1], - asset=os.path.join( - os.path.split(os.path.realpath(__file__))[0], file + asset=open( + file=os.path.join( + os.path.split(os.path.realpath(__file__))[0], file + ), + mode='rb' ) )