Memo-migrated‎ > ‎

How to check a python module path before importing?

posted Jun 24, 2018, 7:01 PM by Teng-Yok Lee   [ updated Jan 2, 2021, 8:40 PM ]
REF: https://stackoverflow.com/questions/247770/retrieving-python-module-path

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