# ----------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# ----------------------------

'''Set up paths for Fast R-CNN.'''

import os.path as osp
import sys

INSTALL_PATH = '../faster_rcnn'
MODEL_DIR = '../faster_models'

def add_path(path):
    if path not in sys.path:
        sys.path.insert(0, path)

# Add caffe to PYTHONPATH
caffe_path = osp.join(INSTALL_PATH, 'caffe-fast-rcnn', 'python')
add_path(caffe_path)

# Add lib to PYTHONPATH
lib_path = osp.join(INSTALL_PATH, 'lib')
add_path(lib_path)
