Memo‎ > ‎

How to check a python module path before importing?

posted Jun 24, 2018, 7:01 PM by Teng-Yok Lee
REF: https://stackoverflow.com/questions/247770/retrieving-python-module-path

Use imp. For instance,
import cv2 imp.find_module("cv2")
Comments