Can module tell if running from interpreter vs Windows command line ?

alex23 wuwei23 at
Wed Jul 15 20:41:41 EDT 2009

On Jul 16, 10:07 am, pdlem... at wrote:
> The WConio console module produces different colors, sometimes quite
> different, when run from Windows command line vs from Python
> interpreter >>> .  A good foregnd/backgnd combination under one
> may be unreadable under the other  : (
> I'm using Python 3.0 with the corresponding WConio on XP.
> Is there any way for the module to detect under which it has been
> started ?    Thanks

It's recommended that you search through the list for similar
questions before posting. This was covered just yesterday:

More information about the Python-list mailing list