How to check is a library/module is installed on the system? I use the
next code but it's possivle that there is a best way.
-------------------
try:
import foo
foo_loaded = True
except ImportError:
foo_loaded = False
-------------------
Thanks in advance!
next code but it's possivle that there is a best way.
-------------------
try:
import foo
foo_loaded = True
except ImportError:
foo_loaded = False
-------------------
Thanks in advance!
Comment