Spaces:
Runtime error
Runtime error
""" | |
A kind of hacky way to get all the lib paths in order. | |
""" | |
import sys | |
import os | |
current_dir = os.path.dirname(os.path.realpath(__file__)) | |
for d in [current_dir, os.path.join(current_dir, "lib/fish_eye/"), os.path.join(current_dir, "lib/"), os.path.join(current_dir, "lib/yolov5/")]: | |
if d not in sys.path: | |
sys.path.append(d) |