How do I detect if a script is run from a Windows console or from Komodo debugger without passing different arguments to the script?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Although I don’t know Komodo, I don’t think its standard input is interactive, so you could try
in_consolewill then be true if the invoker provides interactivestdinand you will get what you want, though not in an elegant way.