# coding=utf-8 import os import sys ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) if ROOT not in sys.path: sys.path.insert(0, ROOT) # MvImport 与本包同级,加入 camera 目录以便 `from MvImport...` _CAMERA_DIR = os.path.dirname(os.path.abspath(__file__)) if _CAMERA_DIR not in sys.path: sys.path.insert(0, _CAMERA_DIR)