From b3735ff6414726c78626618f50eb4c9a01c33d5b Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Mon, 25 Jan 2016 15:54:12 -0500 Subject: [PATCH] align-dlib: Remove outdated sys.path modification. Thanks @kleinsound! --- util/align-dlib.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/util/align-dlib.py b/util/align-dlib.py index 10b4d3d..7ff0e2c 100755 --- a/util/align-dlib.py +++ b/util/align-dlib.py @@ -14,15 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os -import sys -fileDir = os.path.dirname(os.path.realpath(__file__)) -sys.path.append(os.path.join(fileDir, "..")) - -import numpy as np - import argparse import cv2 +import numpy as np +import os import random import shutil @@ -30,6 +25,7 @@ import openface import openface.helper from openface.data import iterImgs +fileDir = os.path.dirname(os.path.realpath(__file__)) modelDir = os.path.join(fileDir, '..', 'models') dlibModelDir = os.path.join(modelDir, 'dlib') openfaceModelDir = os.path.join(modelDir, 'openface')