fisheye-experimental / scripts /project_path.py
oskarastrom's picture
Full Commit
523a361
raw
history blame
No virus
308 Bytes
import sys
import os
current_dir = os.path.dirname(os.path.realpath(__file__))
pardir = os.path.dirname(current_dir)
for d in [pardir, current_dir, os.path.join(pardir, "lib/fish_eye/"), os.path.join(pardir, "lib/"), os.path.join(pardir, "lib/yolov5/")]:
if d not in sys.path:
sys.path.append(d)