diff --git a/camart b/camart index fba4fc8..f97098d 100755 --- a/camart +++ b/camart @@ -34,6 +34,7 @@ import os.path import sys # relative module +sys.path.append('../opencv/samples/python') import video import contour_util diff --git a/createlinks.sh b/createlinks.sh deleted file mode 100755 index eac5a5c..0000000 --- a/createlinks.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -# Run this to create links to OpenCV code that is used here... - -OPENCV_ROOT=../opencv -ln -s ${OPENCV_ROOT}/samples/python/common.py . -ln -s ${OPENCV_ROOT}/samples/python/video.py . - -ln -s ../tsp-solver/tsp_solver/ tsp_solver diff --git a/opti.py b/opti.py index 2175098..4005749 100644 --- a/opti.py +++ b/opti.py @@ -4,7 +4,11 @@ import math import numpy as np - +import sys +''' +from url = git://github.com/dmishin/tsp-solver.git +''' +sys.path.append('../tsp-solver') from tsp_solver.greedy_numpy import solve_tsp import contour_util