diff -r 2bbec88047dd -r 2161475d9639 scripts/install.py --- a/scripts/install.py Wed Apr 21 19:40:50 2021 +0200 +++ b/scripts/install.py Thu Apr 22 18:02:47 2021 +0200 @@ -308,11 +308,11 @@ @param wfile basename (without extension) of the wrapper script @return the names of the wrapper scripts """ - if sys.platform.startswith(("win", "cygwin")): - wnames = (dname + "\\" + wfile + ".cmd", - dname + "\\" + wfile + ".bat") - else: - wnames = (dname + "/" + wfile, ) + wnames = ( + (dname + "\\" + wfile + ".cmd", dname + "\\" + wfile + ".bat") + if sys.platform.startswith(("win", "cygwin")) else + (dname + "/" + wfile, ) + ) return wnames @@ -1238,13 +1238,13 @@ "MicroPython", "*.api"))): apis.append(os.path.basename(apiName)) - if sys.platform == "darwin": - macConfig = ( - """ 'macAppBundlePath': r'{0}',\n""" - """ 'macAppBundleName': r'{1}',\n""" - ).format(macAppBundlePath, macAppBundleName) - else: - macConfig = "" + macConfig = ( + (""" 'macAppBundlePath': r'{0}',\n""" + """ 'macAppBundleName': r'{1}',\n""").format(macAppBundlePath, + macAppBundleName) + if sys.platform == "darwin" else + "" + ) config = ( """# -*- coding: utf-8 -*-\n""" """#\n"""