Re: module check

2007-01-22 Thread Larry Bates
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 except: print "Can't import yourmodule" -Larry -- http://mail.python.org

Re: module check

2007-01-22 Thread [EMAIL PROTECTED]
I'm at work so I can't test this, but I do beleive the inspect module can help you out. If it can't you can always try import the module in a try-catch statement, catching ImportError, however ImportError may be raised if the module you imported has trouble loading another module, but it shouln't b

Re: module check

2007-01-22 Thread [EMAIL PROTECTED]
I'm at work so I can't test this, but I do beleive the inspect module can help you out. If it can't you can always try import the module in a try-catch statement, catching ImportError, however ImportError may be raised if the module you imported has trouble loading another module, but it shouln't b

module check

2007-01-22 Thread Victor Polukcht
Can anybody suggest a correct way of checking in python module exists and correctly installed from python program. -- http://mail.python.org/mailman/listinfo/python-list