Steve Willoughby
Wed, 01 Sep 2010 15:00:27 -0700
On 01-Sep-10 13:10, Mark Weil wrote:
Not perfect, but you could check for each browser's binary.
import os
os.path.isfile("/usr/bin/firefox")
You'd probably be better off at least looking at the user's PATH variable, which would likely catch platform variations in where the browser would be located, and catch local installations by that user. Of course, you're still playing a guessing game of what to even look for or what the browser binary is called. Maybe it's /usr/local/bin/firefox3, for example.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor