build: Python3 compat and Win line-endings fixes (#26091)

This commit is contained in:
David Sanders 2020-10-30 03:05:38 -07:00 committed by GitHub
parent f065b2ddef
commit e9cd227b5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 54 additions and 25 deletions

View file

@ -161,7 +161,7 @@ def run_python_upload_script(script, *args):
def get_electron_build_version():
if get_target_arch().startswith('arm') or os.environ.has_key('CI'):
if get_target_arch().startswith('arm') or 'CI' in os.environ:
# In CI we just build as told.
return ELECTRON_VERSION
electron = get_electron_exec()