"exit()" is not defined, but is valid in script in Python 3.7 ...
github.com › pyinstaller › pyinstallerSep 25, 2019 · PS C:\Users\Redacted\dist> .\test.exe 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] Traceback (most recent call last): File "test.py", line 3, in <module> exit(2) NameError: name 'exit' is not defined [14024] Failed to execute script test PS C:\Users\Redacted\dist> python .\test.py 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)]