--- a/scripts/install-debugclients.py Fri Apr 02 11:59:41 2021 +0200 +++ b/scripts/install-debugclients.py Sat May 01 14:27:20 2021 +0200 @@ -18,6 +18,7 @@ import compileall import shutil import fnmatch +import contextlib # Define the globals. progName = None @@ -41,10 +42,8 @@ global currDir if sys.platform.startswith("win"): - try: + with contextlib.suppress(): input("Press enter to continue...") # secok - except (EOFError, SyntaxError): - pass os.chdir(currDir) @@ -203,10 +202,11 @@ global distDir, doCleanup, sourceDir, modDir # set install prefix, if not None - if distDir: - targetDir = os.path.normpath(os.path.join(distDir, installPackage)) - else: - targetDir = os.path.join(modDir, installPackage) + targetDir = ( + os.path.normpath(os.path.join(distDir, installPackage)) + if distDir else + os.path.join(modDir, installPackage) + ) try: # Install the files