How to determine environment

Rick Pasotto rickp at telocity.com
Mon Aug 28 15:06:01 EDT 2000


What's the best way to determine what environment a program is running
in? I want the program to use Tkinter if in X and ncurses if run in a
console.


-- 
"Half of the American people never read a newspaper. Half never voted for
President. One hopes it is the same half."
		-- Gore Vidal
		   Rick Pasotto email: rickp at vnet.net



More information about the Python-list mailing list