On Wed, 15 Jul 2009 19:07:18 -0500, pdlem...@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 Thanks Alex It worked :
import sys hasattr(sys, 'ps1') yields True when started from interpreter >>> and False run from Windows command line Dave WB3DWE -- http://mail.python.org/mailman/listinfo/python-list