Nuacht

sys.excepthook () and sys.unraisablehook () now explicitly flush the file (usually sys.stderr). If file.flush () fails, sys.excepthook () silently ignores the error, whereas sys.unraisablehook () logs ...
Prior to Python 3.11, GetModuleFileNameW() is called at startup in order to get the path to set as sys.executable. So the question is, why isn't sys.executable an extended path in the above example?