module check

Larry Bates larry.bates at
Mon Jan 22 23:49:06 CET 2007

Victor Polukcht wrote:
> Can anybody suggest a correct way of checking in python module exists
> and correctly installed from python program.

Not sure I understand the question, but I'll try:

try: import yourmodule
    print "Can't import yourmodule"


More information about the Python-list mailing list