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

alex23 wuwei23 at gmail.com
Wed Jul 15 20:41:41 EDT 2009


On Jul 16, 10:07 am, pdlem... at earthlink.net 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:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/fb2f075ccc796b63#



More information about the Python-list mailing list