1

I'm making a program, and I'm looking to be able to see if python can detect the user is in python command prompt window, and if they are, then do so and so.

I'm running python version 3.5.1

Here is what I am mean by the python command prompt window:

Command Prompt Window

1 Answers1

0

Checking sys.stdin.isatty() may be what you need, especially in conjunction with this answer.

9000
  • 39,899
  • 9
  • 66
  • 104