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
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
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
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