Instead of invoking pause>nul use the getpass function to suspend script execution.
Closed this issue · 1 comments
Aetopia commented
if exitcode != 0:
print(f"Something went wrong with {video}, press any key to un-pause")
if isWin: system('pause>nul')
exit()
Instead using pause>nul
, You can use getpass
module and its function getpass
to suspend script execution.
Unlike input()
, getpass()
doesn't show the contents of the user's input, making it an effective alternative to pause>nul
.
2022-04-26.16-57-18.mp4
.
couleurm commented
the problem with getpass is that you can only press enter to continue
i think i'll make Smoothie use cmd /k
in the next update,
if it exists it'll simply drop to cmd
else it runs exit
thanks