forked from rafaelpadilla/Object-Detection-Metrics
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_init_paths.py
24 lines (18 loc) · 1.05 KB
/
_init_paths.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
###########################################################################################
# #
# Set up paths for the Object Detection Metrics #
# #
# Developed by: Rafael Padilla ([email protected]) #
# SMT - Signal Multimedia and Telecommunications Lab #
# COPPE - Universidade Federal do Rio de Janeiro #
# Last modification: May 24th 2018 #
###########################################################################################
import sys
import os
def add_path(path):
if path not in sys.path:
sys.path.insert(0, path)
currentPath = os.path.dirname(os.path.realpath(__file__))
# Add lib to PYTHONPATH
libPath = os.path.join(currentPath, 'lib')
add_path(libPath)